Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 109.4 kB / 18.36 MB, free: 4.637 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.001562/0.001562, allocations: 192 kB / 19.29 MB, free: 3.715 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.647/1.647, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001412/0.001412, allocations: 55.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1154, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005168/0.1206, allocations: 2.827 MB / 331.6 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.1226, allocations: 0.772 MB / 332.3 MB, free: 132 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004416/0.1231, allocations: 4 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.1234, allocations: 55.44 kB / 332.4 MB, free: 72 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003131/0.1237, allocations: 83.3 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.1242, allocations: 107.8 kB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.1248, allocations: 370.2 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.1251, allocations: 123.2 kB / 333.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.1253, allocations: 139.4 kB / 333.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.1255, allocations: 151.3 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.1256, allocations: 32 kB / 333.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.517e-05/0.1257, allocations: 28 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.483e-05/0.1258, allocations: 79.73 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.126, allocations: 167.2 kB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.1264, allocations: 370.7 kB / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.1264, allocations: 0 / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1264, allocations: 0 / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1265, allocations: 0 / 334 MB, free: 14.45 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00117/0.1276, allocations: 0.6018 MB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.1277, allocations: 8.031 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.332e-05/0.1278, allocations: 36.56 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.1283, allocations: 272.3 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.762e-05/0.1284, allocations: 76.62 kB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.1285, allocations: 24.38 kB / 335 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004884/0.129, allocations: 309.9 kB / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.129, allocations: 3.938 kB / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.129, allocations: 8 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.129, allocations: 8 kB / 335.3 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003334/0.1294, allocations: 186.2 kB / 335.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1311, allocations: 1.123 MB / 336.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1314, allocations: 154.6 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1315, allocations: 72.83 kB / 336.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.1316, allocations: 8 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.1319, allocations: 161.8 kB / 337 MB, free: 11.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.074e-06/0.1319, allocations: 0 / 337 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001015/0.1329, allocations: 379.2 kB / 337.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.133, allocations: 110.8 kB / 337.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.1332, allocations: 229 kB / 337.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1332, allocations: 29.7 kB / 337.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1334, allocations: 180.1 kB / 337.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.1334, allocations: 75 kB / 338 MB, free: 10.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.647e-05/0.1335, allocations: 53.7 kB / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1336, allocations: 334.8 kB / 338.4 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.1338, allocations: 71.91 kB / 338.5 MB, free: 9.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.134, allocations: 144.6 kB / 338.6 MB, free: 9.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.1342, allocations: 192.2 kB / 338.8 MB, free: 9.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1342, allocations: 0 / 338.8 MB, free: 9.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004108/0.1347, allocations: 271.8 kB / 339 MB, free: 9.012 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1347, allocations: 8 kB / 339.1 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1347, allocations: 7.938 kB / 339.1 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002722/0.135, allocations: 56.81 kB / 339.1 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.1352, allocations: 51.91 kB / 339.2 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.1366, allocations: 1.572 MB / 340.7 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.1369, allocations: 39.7 kB / 340.8 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.1369, allocations: 12 kB / 340.8 MB, free: 7.129 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001609/0.1371, allocations: 145.7 kB / 340.9 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.1371, allocations: 19.81 kB / 341 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.16e-05/0.1372, allocations: 34.23 kB / 341 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1372, allocations: 0 / 341 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1372, allocations: 4 kB / 341 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1372, allocations: 0 / 341 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.1375, allocations: 329.3 kB / 341.3 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1375, allocations: 0 / 341.3 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.1377, allocations: 35.92 kB / 341.3 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.1379, allocations: 52.81 kB / 341.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.1379, allocations: 4 kB / 341.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.139, allocations: 1.426 MB / 342.8 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.139, allocations: 4 kB / 342.8 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006039/0.1397, allocations: 326.3 kB / 343.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1398, allocations: 116.7 kB / 343.3 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.1398, allocations: 7.984 kB / 343.3 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.14, allocations: 15.98 kB / 343.3 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.845e-05/0.1401, allocations: 27.95 kB / 343.3 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1401, allocations: 8 kB / 343.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.1403, allocations: 164.5 kB / 343.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1403, allocations: 0 / 343.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.1406, allocations: 83.83 kB / 343.6 MB, free: 4.113 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001375/0.1408, allocations: 107.1 kB / 343.7 MB, free: 4 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.1414, allocations: 286.5 kB / 344 MB, free: 3.707 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1414, allocations: 4.438 kB / 344 MB, free: 3.703 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.1417, allocations: 198.5 kB / 344.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.142, allocations: 36.36 kB / 344.2 MB, free: 3.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.1436, allocations: 0.6474 MB / 344.8 MB, free: 2.785 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.1439, allocations: 0.7558 MB / 345.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.144, allocations: 30.27 kB / 345.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.1441, allocations: 19.44 kB / 345.6 MB, free: 1.953 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1441, allocations: 4 kB / 345.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of Templates: time 0.007778/0.1519, allocations: 3.053 MB / 348.7 MB, free: 14.9 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches