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.002914/0.002914, allocations: 181.3 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.861/3.861, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001595/0.001595, allocations: 86.36 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005598/0.0005601, allocations: 12 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6873/0.6879, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.228/0.9161, allocations: 78.12 MB / 453.8 MB, free: 2.512 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005508/0.9167, allocations: 75.95 kB / 453.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02753/0.9443, allocations: 5.42 MB / 459.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.088e-06/0.9444, allocations: 4 kB / 459.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.045e-05/0.9445, allocations: 12 kB / 459.4 MB, free: 12.98 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.001893/0.9464, allocations: 0.5605 MB / 459.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.621e-05/0.9464, allocations: 8.031 kB / 459.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.9466, allocations: 36.56 kB / 460 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005613/0.9472, allocations: 247.8 kB / 460.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.9474, allocations: 76.61 kB / 460.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.9475, allocations: 28.38 kB / 460.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009977/0.9485, allocations: 302.3 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.9486, allocations: 3.938 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.186e-05/0.9487, allocations: 15.98 kB / 460.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.9487, allocations: 4 kB / 460.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008122/0.9495, allocations: 182.2 kB / 460.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.953, allocations: 1.147 MB / 461.9 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004979/0.9535, allocations: 158.8 kB / 462.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/0.9538, allocations: 76.84 kB / 462.2 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.9539, allocations: 3.938 kB / 462.2 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000594/0.9545, allocations: 165.7 kB / 462.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 5.34e-06/0.9545, allocations: 0 / 462.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001951/0.9565, allocations: 391.2 kB / 462.7 MB, free: 9.352 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.9566, allocations: 102.8 kB / 462.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.9572, allocations: 232.9 kB / 463.1 MB, free: 8.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.9573, allocations: 25.7 kB / 463.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.9576, allocations: 180.2 kB / 463.3 MB, free: 8.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.9577, allocations: 67.11 kB / 463.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.9578, allocations: 7.938 kB / 463.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002347/0.958, allocations: 338.8 kB / 463.7 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.9583, allocations: 64.53 kB / 463.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.9587, allocations: 128.1 kB / 463.8 MB, free: 8.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005267/0.9592, allocations: 174.4 kB / 464 MB, free: 7.965 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.9592, allocations: 0 / 464 MB, free: 7.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008964/0.9602, allocations: 260 kB / 464.3 MB, free: 7.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.9602, allocations: 4 kB / 464.3 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/0.9602, allocations: 4 kB / 464.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/0.9607, allocations: 52.81 kB / 464.3 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/0.9612, allocations: 52.02 kB / 464.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.9633, allocations: 1.405 MB / 465.8 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.9638, allocations: 39.67 kB / 465.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.9638, allocations: 12 kB / 465.8 MB, free: 6 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.0003144/0.9641, allocations: 149 kB / 466 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.384e-05/0.9642, allocations: 23.8 kB / 466 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.731e-05/0.9643, allocations: 30.12 kB / 466 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.9644, allocations: 4 kB / 466 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.9644, allocations: 0 / 466 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.9644, allocations: 3.984 kB / 466 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005903/0.965, allocations: 321.3 kB / 466.4 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.965, allocations: 0 / 466.4 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.9653, allocations: 27.98 kB / 466.4 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003539/0.9656, allocations: 68.69 kB / 466.5 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.9657, allocations: 0 / 466.5 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002003/0.9677, allocations: 1.331 MB / 467.8 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.9677, allocations: 0 / 467.8 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.9689, allocations: 338.2 kB / 468.1 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.9691, allocations: 108.8 kB / 468.2 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.542e-05/0.9692, allocations: 8 kB / 468.2 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.9696, allocations: 19.98 kB / 468.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.9698, allocations: 36 kB / 468.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.9699, allocations: 4 kB / 468.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003027/0.9702, allocations: 160.5 kB / 468.4 MB, free: 3.152 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.9702, allocations: 0 / 468.4 MB, free: 3.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007869/0.971, allocations: 87.77 kB / 468.5 MB, free: 3.066 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.0003097/0.9713, allocations: 119.1 kB / 468.6 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.9724, allocations: 279.2 kB / 468.9 MB, free: 2.652 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.9724, allocations: 4 kB / 468.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004911/0.9729, allocations: 186.6 kB / 469.1 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/0.9736, allocations: 48.28 kB / 469.2 MB, free: 2.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.9765, allocations: 0.8353 MB / 470 MB, free: 1.547 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007127/0.9773, allocations: 0.7596 MB / 470.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.9775, allocations: 27.38 kB / 470.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of SimCode: time 2.454e-06/0.9775, allocations: 0 / 470.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of Templates: time 0.01784/0.9994, allocations: 4.151 MB / 474.9 MB, free: 12.59 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