Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.001041, allocations: 96.14 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009069/0.0009071, allocations: 180 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005556/0.0005558, allocations: 23.42 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1216, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003465/0.1251, allocations: 2.494 MB / 330.8 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1268, allocations: 0.7609 MB / 331.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003206/0.1271, allocations: 11.94 kB / 331.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.1273, allocations: 39.67 kB / 331.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.1277, allocations: 131.6 kB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.1282, allocations: 75.84 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.1287, allocations: 287.4 kB / 332.1 MB, free: 300 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.129, allocations: 110.6 kB / 332.2 MB, free: 192 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.1293, allocations: 135.5 kB / 332.3 MB, free: 56 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.1296, allocations: 143.4 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.832e-05/0.1297, allocations: 20 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.126e-05/0.1297, allocations: 23.94 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.338e-05/0.1298, allocations: 67.73 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.1299, allocations: 89.52 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.1302, allocations: 299.4 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1302, allocations: 0 / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1302, allocations: 0 / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.1303, allocations: 0 / 333 MB, free: 15.42 MB / 286.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.001099/0.1314, allocations: 0.6041 MB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1314, allocations: 8.031 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.1315, allocations: 39.53 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.1319, allocations: 280 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.1321, allocations: 80.06 kB / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.564e-05/0.1322, allocations: 28 kB / 334 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.1329, allocations: 334.7 kB / 334.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1329, allocations: 0 / 334.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.1329, allocations: 12 kB / 334.3 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.133, allocations: 12 kB / 334.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005339/0.1335, allocations: 222.5 kB / 334.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.1357, allocations: 1.391 MB / 336 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.136, allocations: 178.6 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.136, allocations: 0 / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.1364, allocations: 155.5 kB / 336.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.1364, allocations: 0 / 336.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001133/0.1375, allocations: 424.8 kB / 336.7 MB, free: 11.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.1376, allocations: 106.8 kB / 336.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.1379, allocations: 262.6 kB / 337.1 MB, free: 11.01 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.1379, allocations: 29.7 kB / 337.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.1381, allocations: 203.9 kB / 337.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.775e-05/0.1382, allocations: 74.98 kB / 337.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.452e-05/0.1382, allocations: 8 kB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1383, allocations: 343.1 kB / 337.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1385, allocations: 72.62 kB / 337.8 MB, free: 10.28 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.1388, allocations: 185.5 kB / 338 MB, free: 10.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.1389, allocations: 93.14 kB / 338.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.139, allocations: 4 kB / 338.1 MB, free: 9.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006485/0.1396, allocations: 340 kB / 338.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.1396, allocations: 8 kB / 338.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1397, allocations: 4 kB / 338.4 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.14, allocations: 60.97 kB / 338.5 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.1402, allocations: 63.84 kB / 338.5 MB, free: 9.484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1416, allocations: 1.416 MB / 339.9 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.1418, allocations: 51.66 kB / 340 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.1419, allocations: 16.19 kB / 340 MB, free: 7.867 MB / 286.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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.1421, allocations: 149.7 kB / 340.2 MB, free: 7.711 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.1421, allocations: 31.62 kB / 340.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.1422, allocations: 34.16 kB / 340.2 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1422, allocations: 4 kB / 340.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1422, allocations: 0 / 340.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1422, allocations: 7.891 kB / 340.2 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/0.1425, allocations: 333.5 kB / 340.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1426, allocations: 4 kB / 340.6 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.1427, allocations: 35.92 kB / 340.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.1429, allocations: 56.81 kB / 340.6 MB, free: 7.164 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.143, allocations: 3.984 kB / 340.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.1441, allocations: 1.327 MB / 342 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1441, allocations: 0 / 342 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007084/0.1449, allocations: 366.2 kB / 342.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.145, allocations: 116.8 kB / 342.5 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.145, allocations: 4 kB / 342.5 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.1452, allocations: 23.98 kB / 342.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.273e-05/0.1453, allocations: 35.89 kB / 342.5 MB, free: 5.125 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.1453, allocations: 4 kB / 342.5 MB, free: 5.121 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.1455, allocations: 194 kB / 342.7 MB, free: 4.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1455, allocations: 0 / 342.7 MB, free: 4.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003939/0.1459, allocations: 83.84 kB / 342.8 MB, free: 4.848 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.1461, allocations: 103.2 kB / 342.9 MB, free: 4.738 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006387/0.1467, allocations: 322.6 kB / 343.2 MB, free: 4.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.1467, allocations: 4 kB / 343.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.147, allocations: 198.6 kB / 343.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.1473, allocations: 32.44 kB / 343.4 MB, free: 4.168 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.1488, allocations: 0.8346 MB / 344.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1491, allocations: 0.7755 MB / 345 MB, free: 2.508 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.1492, allocations: 30.28 kB / 345.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.027e-05/0.1493, allocations: 23.44 kB / 345.1 MB, free: 2.453 MB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.1493, allocations: 0 / 345.1 MB, free: 2.453 MB / 286.1 MB Notification: Performance of Templates: time 0.006218/0.1555, allocations: 2.676 MB / 347.8 MB, free: 15.78 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches