Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001784/0.001785, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002032/0.002032, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3505, allocations: 50.54 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004367/0.3549, allocations: 2.885 MB / 412.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3564, allocations: 0.7633 MB / 412.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.3565, allocations: 4 kB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.3568, allocations: 51.5 kB / 413 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.3569, allocations: 95.17 kB / 413.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.3573, allocations: 103.8 kB / 413.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003791/0.3577, allocations: 370.4 kB / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.358, allocations: 127.2 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.3582, allocations: 143.4 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.3584, allocations: 151.3 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.545e-05/0.3585, allocations: 28 kB / 414 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.737e-05/0.3585, allocations: 32 kB / 414 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.251e-05/0.3586, allocations: 71.8 kB / 414.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.3588, allocations: 163.2 kB / 414.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.3593, allocations: 366.3 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3593, allocations: 0 / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3593, allocations: 4 kB / 414.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.3593, allocations: 4 kB / 414.6 MB, free: 12.24 MB / 334.1 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.001303/0.3606, allocations: 0.6092 MB / 415.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.3607, allocations: 8.031 kB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.3608, allocations: 44.7 kB / 415.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.3613, allocations: 264.5 kB / 415.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.3615, allocations: 72.62 kB / 415.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.3615, allocations: 32.36 kB / 415.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.3621, allocations: 305.8 kB / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3622, allocations: 0 / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.3622, allocations: 16 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3622, allocations: 8 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.3626, allocations: 190.1 kB / 416.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.3645, allocations: 1.124 MB / 417.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.3649, allocations: 158.5 kB / 417.4 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.365, allocations: 80.83 kB / 417.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.3651, allocations: 0 / 417.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.3654, allocations: 156.8 kB / 417.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.502e-06/0.3654, allocations: 0 / 417.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001206/0.3666, allocations: 383.6 kB / 418 MB, free: 8.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.3668, allocations: 114.8 kB / 418.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.3671, allocations: 225 kB / 418.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3671, allocations: 29.64 kB / 418.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.3672, allocations: 188.5 kB / 418.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.3673, allocations: 71.42 kB / 418.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3674, allocations: 61.66 kB / 418.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3676, allocations: 334.8 kB / 419 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3677, allocations: 67.97 kB / 419.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.3679, allocations: 141.5 kB / 419.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.3682, allocations: 192.2 kB / 419.4 MB, free: 7.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3682, allocations: 4 kB / 419.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004128/0.3686, allocations: 268.5 kB / 419.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3686, allocations: 4 kB / 419.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3687, allocations: 7.938 kB / 419.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.369, allocations: 57.03 kB / 419.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.3692, allocations: 55.91 kB / 419.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.3706, allocations: 1.576 MB / 421.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.3708, allocations: 47.89 kB / 421.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.3708, allocations: 8 kB / 421.4 MB, free: 4.891 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.371, allocations: 145.7 kB / 421.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.3711, allocations: 27.86 kB / 421.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.815e-05/0.3711, allocations: 26.17 kB / 421.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3711, allocations: 4 kB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3712, allocations: 0 / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3712, allocations: 4 kB / 421.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.3715, allocations: 325.3 kB / 421.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3715, allocations: 0 / 421.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.3717, allocations: 39.92 kB / 422 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001804/0.3719, allocations: 48.81 kB / 422 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.3719, allocations: 8 kB / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.3731, allocations: 1.422 MB / 423.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3731, allocations: 4.031 kB / 423.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.3737, allocations: 322.7 kB / 423.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3738, allocations: 116.9 kB / 423.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.3739, allocations: 4.125 kB / 423.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.374, allocations: 19.98 kB / 423.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.474e-05/0.3741, allocations: 31.89 kB / 423.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3741, allocations: 8 kB / 423.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.3743, allocations: 164.5 kB / 424.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3743, allocations: 0 / 424.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.3747, allocations: 83.78 kB / 424.2 MB, free: 1.875 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.3748, allocations: 114.7 kB / 424.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005554/0.3754, allocations: 289.8 kB / 424.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3754, allocations: 0 / 424.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.3757, allocations: 190.6 kB / 424.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.376, allocations: 44.8 kB / 424.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.3777, allocations: 0.6583 MB / 425.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.3782, allocations: 0.7595 MB / 426.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.621e-05/0.3783, allocations: 26.28 kB / 426.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.081e-05/0.3783, allocations: 23.44 kB / 426.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3783, allocations: 0 / 426.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of Templates: time 0.00765/0.386, allocations: 3.094 MB / 429.4 MB, free: 12.64 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches