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.001032/0.001032, allocations: 96.92 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009396/0.0009398, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.7 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.000307, allocations: 8.281 kB / 307.7 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1383, allocations: 51.53 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00374/0.142, allocations: 2.812 MB / 362.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1438, allocations: 0.8102 MB / 362.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002982/0.1441, allocations: 4 kB / 362.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.1444, allocations: 43.67 kB / 362.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003556/0.1447, allocations: 87.25 kB / 363 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.1453, allocations: 107.8 kB / 363.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005952/0.1459, allocations: 394.2 kB / 363.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.1461, allocations: 120.3 kB / 363.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003357/0.1465, allocations: 135.4 kB / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.1468, allocations: 163.2 kB / 363.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.1469, allocations: 20 kB / 363.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.147, allocations: 27.94 kB / 364 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.464e-05/0.1471, allocations: 63.69 kB / 364 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.1473, allocations: 188.8 kB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004276/0.1477, allocations: 402.7 kB / 364.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1477, allocations: 0 / 364.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1477, allocations: 0 / 364.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.1478, allocations: 0 / 364.6 MB, free: 7.688 MB / 302.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.001121/0.1489, allocations: 0.612 MB / 365.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1489, allocations: 8.031 kB / 365.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.1492, allocations: 52.45 kB / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.1495, allocations: 289.1 kB / 365.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.1497, allocations: 76.62 kB / 365.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.411e-05/0.1497, allocations: 36.38 kB / 365.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.1503, allocations: 342.8 kB / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.1504, allocations: 0 / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/0.1504, allocations: 16 kB / 366 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1504, allocations: 11.94 kB / 366 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.1508, allocations: 226.5 kB / 366.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.1529, allocations: 1.379 MB / 367.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.1533, allocations: 166.5 kB / 367.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.1535, allocations: 105.5 kB / 367.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.1535, allocations: 7.984 kB / 367.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004002/0.1539, allocations: 157.8 kB / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.834e-06/0.1539, allocations: 0 / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001387/0.1553, allocations: 415.2 kB / 368.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.951e-05/0.1554, allocations: 114.7 kB / 368.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.1558, allocations: 262.6 kB / 368.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.1558, allocations: 33.69 kB / 368.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.156, allocations: 203.9 kB / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.1561, allocations: 70.98 kB / 369.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.1561, allocations: 33.7 kB / 369.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1563, allocations: 342.8 kB / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.1565, allocations: 76.61 kB / 369.6 MB, free: 2.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.1567, allocations: 177.5 kB / 369.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.1571, allocations: 237.4 kB / 370 MB, free: 1.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1571, allocations: 0 / 370 MB, free: 1.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007257/0.1578, allocations: 348.5 kB / 370.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.1579, allocations: 12.06 kB / 370.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1579, allocations: 4 kB / 370.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.1582, allocations: 60.75 kB / 370.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.1585, allocations: 59.91 kB / 370.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2609/0.4194, allocations: 1.406 MB / 371.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/0.42, allocations: 52.22 kB / 371.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.42, allocations: 13.44 kB / 371.9 MB, free: 18.16 MB / 302.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.0003064/0.4204, allocations: 153.5 kB / 372.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.759e-05/0.4204, allocations: 26.53 kB / 372.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.4206, allocations: 40.45 kB / 372.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.4206, allocations: 2.281 kB / 372.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4206, allocations: 0 / 372.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.4206, allocations: 2.875 kB / 372.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005369/0.4211, allocations: 333.6 kB / 372.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4212, allocations: 1.75 kB / 372.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.4214, allocations: 38.64 kB / 372.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002807/0.4217, allocations: 62.16 kB / 372.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.4217, allocations: 2.188 kB / 372.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.4228, allocations: 1.328 MB / 373.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4228, allocations: 1.828 kB / 373.9 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008882/0.4237, allocations: 355 kB / 374.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.4239, allocations: 122.2 kB / 374.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.4239, allocations: 6.469 kB / 374.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.4242, allocations: 24.89 kB / 374.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4243, allocations: 26.56 kB / 374.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.4244, allocations: 12.98 kB / 374.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003028/0.4247, allocations: 184.2 kB / 374.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4247, allocations: 3.531 kB / 374.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005046/0.4252, allocations: 89.27 kB / 374.7 MB, free: 16.37 MB / 302.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.000166/0.4254, allocations: 103.3 kB / 374.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007465/0.4261, allocations: 314.4 kB / 375.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4261, allocations: 1.969 kB / 375.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.4265, allocations: 204.2 kB / 375.3 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.4268, allocations: 38.92 kB / 375.4 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.4288, allocations: 0.8662 MB / 376.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.4291, allocations: 0.7697 MB / 377 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.4293, allocations: 26.69 kB / 377 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.717e-05/0.4294, allocations: 21.02 kB / 377 MB, free: 14.85 MB / 302.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4294, allocations: 1.406 kB / 377 MB, free: 14.85 MB / 302.1 MB Notification: Performance of Templates: time 0.009776/0.4392, allocations: 2.789 MB / 379.8 MB, free: 14.67 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches