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.001634/0.001634, allocations: 178.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008222/0.0008219, allocations: 74.72 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.66e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09725, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3057/0.403, allocations: 77.56 MB / 440.6 MB, free: 2.047 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.4032, allocations: 74.69 kB / 440.7 MB, free: 2.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01372/0.4169, allocations: 5.358 MB / 446.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.417, allocations: 0 / 446.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.417, allocations: 12.75 kB / 446.1 MB, free: 13.53 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.0007875/0.4178, allocations: 0.5433 MB / 446.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4179, allocations: 8.031 kB / 446.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.049e-05/0.4179, allocations: 35.62 kB / 446.7 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.4182, allocations: 255.6 kB / 446.9 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/0.4183, allocations: 72.14 kB / 447 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.4184, allocations: 20 kB / 447 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002925/0.4187, allocations: 163.6 kB / 447.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.4191, allocations: 249.7 kB / 447.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.4191, allocations: 8.219 kB / 447.4 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.4191, allocations: 0 / 447.4 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.4191, allocations: 11.94 kB / 447.4 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.4206, allocations: 1.07 MB / 448.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.4209, allocations: 145.4 kB / 448.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.421, allocations: 62.86 kB / 448.7 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.421, allocations: 4 kB / 448.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.4212, allocations: 151.8 kB / 448.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.4213, allocations: 0 / 448.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005199/0.4218, allocations: 199.9 kB / 449 MB, free: 10.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.4219, allocations: 113.8 kB / 449.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.422, allocations: 167.8 kB / 449.3 MB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.422, allocations: 37.69 kB / 449.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.981e-05/0.4221, allocations: 174.1 kB / 449.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.4222, allocations: 65.61 kB / 449.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.4222, allocations: 0 / 449.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4224, allocations: 330 kB / 449.9 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.255e-05/0.4225, allocations: 58.12 kB / 450 MB, free: 9.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.4226, allocations: 119.8 kB / 450.1 MB, free: 9.773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.998e-05/0.4227, allocations: 58.39 kB / 450.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.4227, allocations: 4 kB / 450.1 MB, free: 9.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003335/0.423, allocations: 235.6 kB / 450.4 MB, free: 9.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.4231, allocations: 8 kB / 450.4 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4231, allocations: 0 / 450.4 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002481/0.4233, allocations: 51.27 kB / 450.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.4236, allocations: 52 kB / 450.5 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.4247, allocations: 1.363 MB / 451.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.4249, allocations: 27.83 kB / 451.9 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.425, allocations: 8 kB / 451.9 MB, free: 7.984 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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.0001353/0.4251, allocations: 120.4 kB / 452 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.4251, allocations: 19.72 kB / 452 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.243e-05/0.4252, allocations: 28.72 kB / 452.1 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4252, allocations: 7.938 kB / 452.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.4252, allocations: 0 / 452.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4252, allocations: 0 / 452.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.4255, allocations: 269.2 kB / 452.3 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4255, allocations: 0 / 452.3 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.4257, allocations: 39.92 kB / 452.4 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.4258, allocations: 56.62 kB / 452.4 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.4259, allocations: 0 / 452.4 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009245/0.4268, allocations: 1.28 MB / 453.7 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4268, allocations: 3.953 kB / 453.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005079/0.4273, allocations: 308.9 kB / 454 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.941e-05/0.4274, allocations: 104.7 kB / 454.1 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.4275, allocations: 7.984 kB / 454.1 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.4276, allocations: 15.98 kB / 454.1 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.553e-05/0.4277, allocations: 35.91 kB / 454.2 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.4278, allocations: 11.36 kB / 454.2 MB, free: 5.695 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.4278, allocations: 123.4 kB / 454.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4278, allocations: 0 / 454.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003317/0.4282, allocations: 75.75 kB / 454.4 MB, free: 5.516 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.0001464/0.4283, allocations: 114.9 kB / 454.5 MB, free: 5.398 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.4288, allocations: 246.3 kB / 454.7 MB, free: 5.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4288, allocations: 8.125 kB / 454.7 MB, free: 5.188 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.429, allocations: 186.6 kB / 454.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.4292, allocations: 22.67 kB / 454.9 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.4305, allocations: 0.4939 MB / 455.4 MB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.4307, allocations: 0.7677 MB / 456.2 MB, free: 3.723 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.738e-05/0.4308, allocations: 22.06 kB / 456.2 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.4309, allocations: 19.44 kB / 456.2 MB, free: 3.684 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4309, allocations: 0 / 456.2 MB, free: 3.684 MB / 330.7 MB Notification: Performance of Templates: time 0.004949/0.4358, allocations: 2.35 MB / 458.6 MB, free: 1.348 MB / 330.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