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.001463/0.001463, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.885/1.885, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001129/0.001129, allocations: 94.09 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.0003829, allocations: 11.98 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3243, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.4468, allocations: 78.09 MB / 452.6 MB, free: 2.676 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.4471, allocations: 67.97 kB / 452.7 MB, free: 2.609 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0342/0.4813, allocations: 5.412 MB / 458.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4814, allocations: 0 / 458.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.584e-05/0.4814, allocations: 12 kB / 458.1 MB, free: 13.16 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.002035/0.4835, allocations: 0.5603 MB / 458.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.4836, allocations: 8.031 kB / 458.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.4838, allocations: 39.56 kB / 458.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005828/0.4844, allocations: 246.6 kB / 459 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.4845, allocations: 84.02 kB / 459 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.4847, allocations: 28 kB / 459.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.4859, allocations: 293.7 kB / 459.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.4859, allocations: 0 / 459.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/0.486, allocations: 12 kB / 459.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.4861, allocations: 8 kB / 459.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009307/0.487, allocations: 194.1 kB / 459.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003676/0.4907, allocations: 1.139 MB / 460.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004463/0.4912, allocations: 150.5 kB / 460.9 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.4913, allocations: 11.94 kB / 460.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004064/0.4917, allocations: 155.7 kB / 461 MB, free: 10.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.374e-06/0.4917, allocations: 4 kB / 461 MB, free: 10.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001639/0.4934, allocations: 397.7 kB / 461.4 MB, free: 9.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/0.4934, allocations: 106.8 kB / 461.5 MB, free: 9.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.4938, allocations: 208.1 kB / 461.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.4938, allocations: 29.7 kB / 461.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.494, allocations: 230.8 kB / 462 MB, free: 9.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.463e-05/0.4941, allocations: 70.98 kB / 462 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.4941, allocations: 8 kB / 462 MB, free: 8.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4943, allocations: 322.8 kB / 462.4 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.4945, allocations: 56.55 kB / 462.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.4948, allocations: 140.1 kB / 462.6 MB, free: 8.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.495, allocations: 69.16 kB / 462.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.495, allocations: 0 / 462.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006475/0.4957, allocations: 248.5 kB / 462.9 MB, free: 8.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.4957, allocations: 4 kB / 462.9 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.4957, allocations: 0 / 462.9 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.4961, allocations: 60.77 kB / 462.9 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.4965, allocations: 55.97 kB / 463 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.4983, allocations: 1.404 MB / 464.4 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004179/0.4988, allocations: 39.7 kB / 464.4 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.4988, allocations: 15.94 kB / 464.4 MB, free: 6.363 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.0002324/0.499, allocations: 145.1 kB / 464.6 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.4991, allocations: 31.67 kB / 464.6 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.502e-05/0.4992, allocations: 26.17 kB / 464.6 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.4992, allocations: 4 kB / 464.6 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4992, allocations: 4 kB / 464.6 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4992, allocations: 3.984 kB / 464.7 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.4997, allocations: 321.4 kB / 465 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4997, allocations: 0 / 465 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.5, allocations: 35.92 kB / 465 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003073/0.5004, allocations: 56.77 kB / 465.1 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.5004, allocations: 4 kB / 465.1 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001598/0.502, allocations: 1.332 MB / 466.4 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.502, allocations: 0 / 466.4 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.5031, allocations: 325.8 kB / 466.7 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.5033, allocations: 112.8 kB / 466.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.5033, allocations: 11.92 kB / 466.8 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.5036, allocations: 19.98 kB / 466.9 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.5038, allocations: 32.02 kB / 466.9 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.5038, allocations: 11.98 kB / 466.9 MB, free: 3.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002194/0.504, allocations: 160.5 kB / 467.1 MB, free: 3.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5041, allocations: 0 / 467.1 MB, free: 3.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005203/0.5046, allocations: 79.84 kB / 467.1 MB, free: 3.438 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.0001821/0.5048, allocations: 111.2 kB / 467.2 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007817/0.5056, allocations: 284 kB / 467.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5056, allocations: 0 / 467.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.506, allocations: 194.5 kB / 467.7 MB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.5064, allocations: 43.16 kB / 467.7 MB, free: 2.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.5091, allocations: 0.8469 MB / 468.6 MB, free: 1.914 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.5095, allocations: 0.7674 MB / 469.4 MB, free: 1.121 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.5096, allocations: 19.44 kB / 469.4 MB, free: 1.102 MB / 346.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5096, allocations: 0 / 469.4 MB, free: 1.102 MB / 346.7 MB Notification: Performance of Templates: time 0.009206/0.5189, allocations: 4.039 MB / 473.4 MB, free: 13.07 MB / 362.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