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.001671/0.001671, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 63.56 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1416, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00501/0.1467, allocations: 3.147 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.1483, allocations: 0.8295 MB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.1485, allocations: 8 kB / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.1487, allocations: 51.44 kB / 362.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.1489, allocations: 115 kB / 363 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.1494, allocations: 119.8 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004362/0.1499, allocations: 418.2 kB / 363.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.1502, allocations: 135.7 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.1504, allocations: 167.4 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.1507, allocations: 171.2 kB / 364 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.301e-05/0.1507, allocations: 36 kB / 364.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.425e-05/0.1508, allocations: 40 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.348e-05/0.1509, allocations: 79.7 kB / 364.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.1511, allocations: 195 kB / 364.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.1516, allocations: 430.5 kB / 364.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1516, allocations: 0 / 364.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1516, allocations: 0 / 364.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1516, allocations: 0 / 364.8 MB, free: 7.406 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.001125/0.1527, allocations: 0.6587 MB / 365.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1528, allocations: 11.97 kB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.153, allocations: 48.47 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.1535, allocations: 289.2 kB / 365.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.485e-05/0.1536, allocations: 76.62 kB / 365.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1537, allocations: 32.38 kB / 365.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006044/0.1543, allocations: 338.9 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1543, allocations: 3.938 kB / 366.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.1544, allocations: 19.98 kB / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1544, allocations: 8 kB / 366.3 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004211/0.1548, allocations: 218.5 kB / 366.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.1567, allocations: 1.356 MB / 367.8 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.1571, allocations: 170.5 kB / 368 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.1573, allocations: 96.75 kB / 368.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1573, allocations: 7.938 kB / 368.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.1576, allocations: 157.1 kB / 368.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.218e-06/0.1576, allocations: 0 / 368.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.1588, allocations: 403.1 kB / 368.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.1589, allocations: 110.8 kB / 368.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.1592, allocations: 266.6 kB / 369 MB, free: 2.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1592, allocations: 29.7 kB / 369 MB, free: 2.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.1594, allocations: 207.9 kB / 369.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.1594, allocations: 67.11 kB / 369.3 MB, free: 2.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1596, allocations: 69.92 kB / 369.4 MB, free: 2.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.1597, allocations: 330.8 kB / 369.7 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.1599, allocations: 76.62 kB / 369.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1602, allocations: 185.5 kB / 370 MB, free: 1.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.1605, allocations: 233.2 kB / 370.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1606, allocations: 0 / 370.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006907/0.1613, allocations: 348.1 kB / 370.5 MB, free: 1.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1613, allocations: 4.344 kB / 370.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1613, allocations: 11.94 kB / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.1616, allocations: 52.81 kB / 370.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.1619, allocations: 63.91 kB / 370.7 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2247/0.3866, allocations: 1.563 MB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.3871, allocations: 41.22 kB / 372.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3872, allocations: 13.7 kB / 372.3 MB, free: 18.94 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.0002155/0.3874, allocations: 158.2 kB / 372.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.3875, allocations: 30.47 kB / 372.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.062e-05/0.3875, allocations: 28.16 kB / 372.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3875, allocations: 3.141 kB / 372.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.3876, allocations: 0.5312 kB / 372.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3876, allocations: 2 kB / 372.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.388, allocations: 342.6 kB / 372.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3881, allocations: 0 / 372.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.3883, allocations: 37.83 kB / 372.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/0.3886, allocations: 53.48 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.3886, allocations: 6.453 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.3897, allocations: 1.428 MB / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3897, allocations: 0 / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008901/0.3906, allocations: 349.3 kB / 374.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.3908, allocations: 119.1 kB / 374.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.3908, allocations: 2.703 kB / 374.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.391, allocations: 22.94 kB / 374.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.3912, allocations: 28.45 kB / 374.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.3912, allocations: 4.984 kB / 374.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.3915, allocations: 192.7 kB / 375.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3915, allocations: 0 / 375.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.392, allocations: 89.55 kB / 375.1 MB, free: 17.04 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.0001925/0.3922, allocations: 103.3 kB / 375.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008686/0.3931, allocations: 318.5 kB / 375.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3931, allocations: 0 / 375.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.3935, allocations: 200.7 kB / 375.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3938, allocations: 39.84 kB / 375.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.3956, allocations: 0.6736 MB / 376.5 MB, free: 16.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3959, allocations: 0.7693 MB / 377.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.3961, allocations: 26.67 kB / 377.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.614e-05/0.3961, allocations: 26.05 kB / 377.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3961, allocations: 0.6875 kB / 377.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Templates: time 0.00932/0.4055, allocations: 3.105 MB / 380.4 MB, free: 15.53 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 -s cvode -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