Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00157/0.00157, allocations: 181.9 kB / 13.66 MB, free: 1.664 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.996/1.996, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001072/0.001072, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.467e-05, allocations: 0 / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5123, allocations: 77.98 MB / 447.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.5127, allocations: 69.47 kB / 447.1 MB, free: 15.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02365/0.5363, allocations: 5.418 MB / 452.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5364, allocations: 0 / 452.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.62e-05/0.5364, allocations: 8 kB / 452.6 MB, free: 10.52 MB / 330.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.001274/0.5377, allocations: 0.5404 MB / 453.1 MB, free: 9.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.5378, allocations: 12.03 kB / 453.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.5379, allocations: 31.62 kB / 453.1 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.5383, allocations: 257.8 kB / 453.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.5385, allocations: 79.88 kB / 453.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/0.5386, allocations: 31.5 kB / 453.5 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006958/0.5393, allocations: 291.1 kB / 453.8 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.5393, allocations: 0 / 453.8 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.5393, allocations: 12.03 kB / 453.8 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.5394, allocations: 8 kB / 453.8 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.5399, allocations: 187.5 kB / 454 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.5424, allocations: 1.132 MB / 455.1 MB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.5429, allocations: 151 kB / 455.3 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.5431, allocations: 85.14 kB / 455.4 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.5432, allocations: 0 / 455.4 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003707/0.5436, allocations: 161.2 kB / 455.5 MB, free: 7.816 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.5436, allocations: 0 / 455.5 MB, free: 7.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.000873/0.5445, allocations: 225.9 kB / 455.7 MB, free: 7.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5446, allocations: 110.8 kB / 455.8 MB, free: 7.496 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.5449, allocations: 198.6 kB / 456 MB, free: 7.328 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/0.545, allocations: 32.95 kB / 456.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.5452, allocations: 229 kB / 456.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.558e-05/0.5453, allocations: 60.3 kB / 456.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.5453, allocations: 7.125 kB / 456.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5455, allocations: 321.8 kB / 456.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.5457, allocations: 60 kB / 456.7 MB, free: 6.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.546, allocations: 137.4 kB / 456.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.5462, allocations: 69.45 kB / 456.9 MB, free: 6.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.5462, allocations: 4.031 kB / 456.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006441/0.5469, allocations: 248.3 kB / 457.2 MB, free: 6.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.5469, allocations: 7.953 kB / 457.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5469, allocations: 0 / 457.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004034/0.5474, allocations: 59.97 kB / 457.2 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/0.5478, allocations: 55.16 kB / 457.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.5496, allocations: 1.401 MB / 458.7 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.5501, allocations: 37.64 kB / 458.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.5502, allocations: 8 kB / 458.7 MB, free: 4.68 MB / 330.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 () * 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.0001517/0.5503, allocations: 129.2 kB / 458.9 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.5504, allocations: 23.72 kB / 458.9 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.552e-05/0.5505, allocations: 27.95 kB / 458.9 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5505, allocations: 7.938 kB / 458.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.5505, allocations: 0 / 458.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.5505, allocations: 3.984 kB / 458.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.551, allocations: 324.1 kB / 459.3 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.551, allocations: 0 / 459.3 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.5514, allocations: 35.92 kB / 459.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003208/0.5517, allocations: 55.62 kB / 459.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.5518, allocations: 3.562 kB / 459.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.5534, allocations: 1.325 MB / 460.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.5534, allocations: 3.984 kB / 460.7 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.5544, allocations: 320.1 kB / 461 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.5546, allocations: 112 kB / 461.1 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.5547, allocations: 3.062 kB / 461.1 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.555, allocations: 23.55 kB / 461.1 MB, free: 2.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.5551, allocations: 31.38 kB / 461.2 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.5552, allocations: 8 kB / 461.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002173/0.5554, allocations: 159.4 kB / 461.3 MB, free: 2.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5554, allocations: 0 / 461.3 MB, free: 2.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005185/0.5559, allocations: 81.94 kB / 461.4 MB, free: 2.062 MB / 330.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) * 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.0002064/0.5562, allocations: 119.4 kB / 461.5 MB, free: 1.941 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008181/0.557, allocations: 279.8 kB / 461.8 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.557, allocations: 0 / 461.8 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004023/0.5574, allocations: 194.8 kB / 462 MB, free: 1.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.5579, allocations: 39.55 kB / 462 MB, free: 1.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.5602, allocations: 0.5489 MB / 462.6 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.5607, allocations: 0.7635 MB / 463.3 MB, free: 164 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.5608, allocations: 23.44 kB / 463.4 MB, free: 140 kB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5608, allocations: 0 / 463.4 MB, free: 140 kB / 330.7 MB Notification: Performance of Templates: time 0.01033/0.5712, allocations: 4.049 MB / 467.4 MB, free: 12.11 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches