Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 223.1 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008287/0.0008286, allocations: 86.98 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003013, allocations: 8 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2714, allocations: 47.56 MB / 375.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09541/0.3669, allocations: 78.08 MB / 453.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.3672, allocations: 79.95 kB / 454 MB, free: 2.512 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0146/0.3818, allocations: 5.413 MB / 459.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3818, allocations: 0 / 459.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.3819, allocations: 8 kB / 459.4 MB, free: 13.07 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008558/0.3827, allocations: 0.572 MB / 460 MB, free: 12.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3828, allocations: 8.031 kB / 460 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.3828, allocations: 35.62 kB / 460 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.3831, allocations: 238.7 kB / 460.2 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-05/0.3832, allocations: 84 kB / 460.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.625e-05/0.3833, allocations: 32 kB / 460.3 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.3837, allocations: 289.7 kB / 460.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.3837, allocations: 0 / 460.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.3838, allocations: 16 kB / 460.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3838, allocations: 11.98 kB / 460.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.3841, allocations: 182.1 kB / 460.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.3857, allocations: 1.139 MB / 462 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002686/0.386, allocations: 166.8 kB / 462.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.386, allocations: 0 / 462.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.3863, allocations: 155.7 kB / 462.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.3863, allocations: 0 / 462.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001016/0.3873, allocations: 401.7 kB / 462.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.3874, allocations: 106.8 kB / 462.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.3876, allocations: 204.1 kB / 463 MB, free: 9.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.3877, allocations: 37.7 kB / 463 MB, free: 9.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3878, allocations: 172.3 kB / 463.2 MB, free: 8.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-05/0.3879, allocations: 67.02 kB / 463.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.3879, allocations: 4 kB / 463.3 MB, free: 8.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.388, allocations: 330.8 kB / 463.6 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3881, allocations: 68.53 kB / 463.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3883, allocations: 128.1 kB / 463.8 MB, free: 8.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.3884, allocations: 73.16 kB / 463.8 MB, free: 8.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3884, allocations: 0 / 463.8 MB, free: 8.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000419/0.3889, allocations: 260.3 kB / 464.1 MB, free: 8.023 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3889, allocations: 8 kB / 464.1 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3889, allocations: 0 / 464.1 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002662/0.3892, allocations: 60.7 kB / 464.2 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.3894, allocations: 52.02 kB / 464.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.3908, allocations: 1.412 MB / 465.6 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.391, allocations: 35.77 kB / 465.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.391, allocations: 8 kB / 465.7 MB, free: 6.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.3912, allocations: 153.3 kB / 465.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.3912, allocations: 35.67 kB / 465.9 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.3913, allocations: 22.19 kB / 465.9 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3913, allocations: 3.984 kB / 465.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.3913, allocations: 0 / 465.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3913, allocations: 4 kB / 465.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003102/0.3916, allocations: 321.3 kB / 466.2 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3916, allocations: 0 / 466.2 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.3918, allocations: 35.92 kB / 466.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001892/0.392, allocations: 60.77 kB / 466.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.392, allocations: 7.984 kB / 466.3 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.3931, allocations: 1.324 MB / 467.6 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3931, allocations: 3.938 kB / 467.6 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.3941, allocations: 333.7 kB / 468 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.3943, allocations: 108.9 kB / 468.1 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.322e-05/0.3944, allocations: 8 kB / 468.1 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.3947, allocations: 19.98 kB / 468.1 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3949, allocations: 36 kB / 468.1 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.3949, allocations: 4 kB / 468.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002413/0.3952, allocations: 164.5 kB / 468.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3952, allocations: 0 / 468.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.3959, allocations: 79.75 kB / 468.4 MB, free: 3.375 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002279/0.3961, allocations: 114.1 kB / 468.5 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007784/0.3969, allocations: 292 kB / 468.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3969, allocations: 0 / 468.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004329/0.3974, allocations: 194.5 kB / 469 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.3978, allocations: 36.36 kB / 469 MB, free: 2.723 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.4005, allocations: 0.8179 MB / 469.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.4009, allocations: 0.7635 MB / 470.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.4011, allocations: 21.94 kB / 470.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.482e-05/0.4012, allocations: 19.44 kB / 470.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4012, allocations: 4 kB / 470.6 MB, free: 1.047 MB / 346.7 MB Notification: Performance of Templates: time 0.009928/0.4111, allocations: 2.749 MB / 473.4 MB, free: 14.32 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches