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.001645/0.001644, allocations: 115.6 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 59.44 kB / 306.4 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1372, allocations: 50.53 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005012/0.1423, allocations: 3.193 MB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.1439, allocations: 0.8179 MB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.1441, allocations: 7.938 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.1443, allocations: 51.67 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.1445, allocations: 83.23 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.1449, allocations: 107.8 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.1454, allocations: 414.2 kB / 361.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.1456, allocations: 143.7 kB / 361.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.1459, allocations: 163.4 kB / 361.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.1461, allocations: 171.2 kB / 362.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.1462, allocations: 32 kB / 362.1 MB, free: 9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.765e-05/0.1463, allocations: 40 kB / 362.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.697e-05/0.1464, allocations: 83.69 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1466, allocations: 195.1 kB / 362.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.147, allocations: 418.8 kB / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.1471, allocations: 4 kB / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1471, allocations: 3.938 kB / 362.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.1471, allocations: 4 kB / 362.9 MB, free: 8.266 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.001156/0.1482, allocations: 0.6509 MB / 363.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1483, allocations: 11.97 kB / 363.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.1485, allocations: 52.45 kB / 363.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.1489, allocations: 277.3 kB / 363.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.149, allocations: 80.62 kB / 363.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.1491, allocations: 32.38 kB / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005847/0.1496, allocations: 342.9 kB / 364.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1497, allocations: 0 / 364.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.1497, allocations: 12 kB / 364.3 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1497, allocations: 11.94 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004328/0.1502, allocations: 218.5 kB / 364.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1521, allocations: 1.375 MB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.1525, allocations: 173 kB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.1527, allocations: 96.75 kB / 366.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1528, allocations: 0 / 366.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000396/0.1532, allocations: 154.5 kB / 366.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.385e-06/0.1532, allocations: 0 / 366.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001199/0.1544, allocations: 409.3 kB / 366.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.525e-05/0.1545, allocations: 110.8 kB / 366.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1548, allocations: 262.6 kB / 367.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.1548, allocations: 29.7 kB / 367.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.155, allocations: 207.9 kB / 367.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.672e-05/0.155, allocations: 71.08 kB / 367.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.1551, allocations: 61.94 kB / 367.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1553, allocations: 334.8 kB / 367.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.1555, allocations: 84.61 kB / 367.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.1557, allocations: 173.5 kB / 368 MB, free: 2.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.1561, allocations: 229.5 kB / 368.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.1561, allocations: 8 kB / 368.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006613/0.1568, allocations: 332.2 kB / 368.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.1568, allocations: 8.344 kB / 368.6 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.1568, allocations: 7.938 kB / 368.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000285/0.1571, allocations: 64.75 kB / 368.7 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.1574, allocations: 63.91 kB / 368.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.1588, allocations: 1.568 MB / 370.3 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.1591, allocations: 51.66 kB / 370.3 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.1591, allocations: 8 kB / 370.3 MB, free: 220 kB / 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.0001721/0.1593, allocations: 149.7 kB / 370.5 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.1594, allocations: 27.78 kB / 370.5 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.838e-05/0.1594, allocations: 38.11 kB / 370.6 MB, free: 0 / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2296/0.3891, allocations: 1.172 kB / 370.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3891, allocations: 1.438 kB / 370.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.3892, allocations: 1.078 kB / 370.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007461/0.3899, allocations: 335.9 kB / 370.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3899, allocations: 0 / 370.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.3902, allocations: 37.33 kB / 370.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/0.3905, allocations: 54.95 kB / 371 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.3906, allocations: 7.188 kB / 371 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.3918, allocations: 1.422 MB / 372.4 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3918, allocations: 4.625 kB / 372.4 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007964/0.3926, allocations: 347.3 kB / 372.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.3927, allocations: 123.4 kB / 372.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.3928, allocations: 2.797 kB / 372.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.393, allocations: 21.81 kB / 372.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.3931, allocations: 29.08 kB / 372.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3931, allocations: 6.469 kB / 372.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001836/0.3933, allocations: 187.9 kB / 373.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3933, allocations: 0.8125 kB / 373.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004584/0.3938, allocations: 91.38 kB / 373.2 MB, free: 18.41 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.0001484/0.3939, allocations: 110.6 kB / 373.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006839/0.3946, allocations: 322 kB / 373.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3946, allocations: 0.5625 kB / 373.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.3949, allocations: 201.7 kB / 373.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3952, allocations: 40.02 kB / 373.9 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3969, allocations: 0.7906 MB / 374.7 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3972, allocations: 0.7707 MB / 375.4 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.3973, allocations: 28.95 kB / 375.5 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.3974, allocations: 22.7 kB / 375.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3974, allocations: 0 / 375.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of Templates: time 0.009332/0.4067, allocations: 2.989 MB / 378.5 MB, free: 16.8 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