Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002212/0.002212, allocations: 117.7 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002817/0.002816, allocations: 204.9 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.471/2.471, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4237/0.4261, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00669/0.4329, allocations: 3.151 MB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.4357, allocations: 0.8178 MB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003456/0.4361, allocations: 11.94 kB / 413.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.4365, allocations: 55.44 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004556/0.437, allocations: 107 kB / 414.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008066/0.4378, allocations: 127.7 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008526/0.4387, allocations: 410.2 kB / 414.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.4391, allocations: 143.7 kB / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004925/0.4397, allocations: 163.4 kB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003995/0.4401, allocations: 179.2 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.76e-05/0.4402, allocations: 32 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.4404, allocations: 48 kB / 415.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.4405, allocations: 79.69 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.4408, allocations: 187.1 kB / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000793/0.4416, allocations: 427.6 kB / 415.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.4417, allocations: 3.938 kB / 415.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4417, allocations: 0 / 415.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.4417, allocations: 4 kB / 415.8 MB, free: 11.64 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001766/0.4435, allocations: 0.6509 MB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.4435, allocations: 8.031 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.4439, allocations: 48.55 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.4447, allocations: 293.1 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.4449, allocations: 76.62 kB / 416.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.445, allocations: 36.38 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.446, allocations: 342.8 kB / 417.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.4461, allocations: 0 / 417.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.4461, allocations: 12 kB / 417.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.4462, allocations: 8 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007777/0.447, allocations: 226.5 kB / 417.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002997/0.45, allocations: 1.348 MB / 418.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.4505, allocations: 170.6 kB / 419 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.4508, allocations: 92.77 kB / 419.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.4509, allocations: 4 kB / 419.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004485/0.4513, allocations: 153 kB / 419.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.396e-06/0.4514, allocations: 0 / 419.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00185/0.4532, allocations: 411 kB / 419.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.615e-05/0.4534, allocations: 110.8 kB / 419.8 MB, free: 7.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.4538, allocations: 266.7 kB / 420.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.4539, allocations: 33.7 kB / 420.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.4541, allocations: 203.9 kB / 420.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.452e-05/0.4543, allocations: 71.02 kB / 420.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.4544, allocations: 65.92 kB / 420.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4546, allocations: 334.8 kB / 420.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.4549, allocations: 76.62 kB / 420.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000383/0.4553, allocations: 177.5 kB / 421 MB, free: 6.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006462/0.456, allocations: 243.5 kB / 421.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.456, allocations: 0 / 421.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001337/0.4574, allocations: 344.4 kB / 421.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.4574, allocations: 4 kB / 421.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4575, allocations: 4 kB / 421.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004484/0.4579, allocations: 52.81 kB / 421.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.4584, allocations: 71.97 kB / 421.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/0.4607, allocations: 1.572 MB / 423.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.4612, allocations: 43.7 kB / 423.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.4613, allocations: 23.92 kB / 423.3 MB, free: 3.594 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0002831/0.4616, allocations: 152.5 kB / 423.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.4617, allocations: 31.62 kB / 423.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.4619, allocations: 34.11 kB / 423.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.4619, allocations: 0 / 423.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.4619, allocations: 0 / 423.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.4619, allocations: 0 / 423.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006611/0.4626, allocations: 337.5 kB / 423.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4626, allocations: 0 / 423.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003802/0.463, allocations: 35.98 kB / 423.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003554/0.4634, allocations: 56.69 kB / 424 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.4634, allocations: 11.98 kB / 424 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.4655, allocations: 1.414 MB / 425.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.4655, allocations: 3.938 kB / 425.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.4669, allocations: 356.9 kB / 425.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002376/0.4672, allocations: 112.8 kB / 425.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.06e-05/0.4673, allocations: 12 kB / 425.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.4676, allocations: 15.98 kB / 425.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.4678, allocations: 35.95 kB / 425.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.4679, allocations: 8 kB / 425.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003386/0.4682, allocations: 186 kB / 426.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4682, allocations: 0 / 426.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007489/0.469, allocations: 87.75 kB / 426.2 MB, free: 500 kB / 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002257/0.4693, allocations: 107.2 kB / 426.3 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.4703, allocations: 310.8 kB / 426.6 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.4704, allocations: 4 kB / 426.6 MB, free: 52 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005065/0.4709, allocations: 210.5 kB / 426.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.4714, allocations: 35.58 kB / 426.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.4742, allocations: 0.7054 MB / 427.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.4748, allocations: 0.7753 MB / 428.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.475, allocations: 27.44 kB / 428.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.475, allocations: 0 / 428.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Templates: time 0.01282/0.4879, allocations: 4.71 MB / 433.1 MB, free: 9.535 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches