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.001205/0.001205, allocations: 98.11 kB / 16.94 MB, free: 6.441 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.001451/0.001451, allocations: 188.6 kB / 17.83 MB, free: 6.008 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.595/1.595, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004424/0.0004425, allocations: 15.44 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1174, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002664/0.1201, allocations: 2.268 MB / 330.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.1213, allocations: 0.7609 MB / 331.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1214, allocations: 8 kB / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.294e-05/0.1215, allocations: 35.69 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.1217, allocations: 103.7 kB / 331.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.122, allocations: 79.8 kB / 331.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.1223, allocations: 259.3 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1225, allocations: 86.33 kB / 331.9 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.1226, allocations: 123.6 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.1228, allocations: 127.5 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.1228, allocations: 16 kB / 332.2 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.281e-05/0.1229, allocations: 16 kB / 332.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.1229, allocations: 51.77 kB / 332.2 MB, free: 160 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.123, allocations: 81.58 kB / 332.3 MB, free: 72 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.1233, allocations: 259.5 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.1233, allocations: 0 / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1233, allocations: 0 / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.1233, allocations: 0 / 332.6 MB, free: 15.82 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.0008974/0.1242, allocations: 0.5627 MB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1243, allocations: 12.03 kB / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/0.1244, allocations: 39.56 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.1247, allocations: 251.2 kB / 333.4 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.645e-05/0.1248, allocations: 84 kB / 333.5 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.1248, allocations: 28 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.1253, allocations: 289.7 kB / 333.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1253, allocations: 4 kB / 333.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.1253, allocations: 16 kB / 333.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1253, allocations: 8 kB / 333.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003175/0.1257, allocations: 190.1 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.1273, allocations: 1.139 MB / 335.2 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.1276, allocations: 158.5 kB / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.1276, allocations: 0 / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.1279, allocations: 155.5 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.1279, allocations: 4 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001038/0.129, allocations: 397.4 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.1291, allocations: 110.8 kB / 336 MB, free: 12.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.1293, allocations: 228.9 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.1293, allocations: 33.7 kB / 336.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.1295, allocations: 176.2 kB / 336.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.903e-05/0.1295, allocations: 75.08 kB / 336.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.321e-05/0.1295, allocations: 4 kB / 336.5 MB, free: 11.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1297, allocations: 330.8 kB / 336.8 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1298, allocations: 67.98 kB / 336.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.13, allocations: 140.6 kB / 337 MB, free: 11.03 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.1301, allocations: 85.05 kB / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1301, allocations: 0 / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004093/0.1306, allocations: 271.9 kB / 337.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1306, allocations: 4 kB / 337.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1306, allocations: 4.219 kB / 337.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.1309, allocations: 60.77 kB / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.1311, allocations: 51.92 kB / 337.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1323, allocations: 1.412 MB / 338.9 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.1325, allocations: 39.98 kB / 338.9 MB, free: 8.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.1326, allocations: 15.98 kB / 339 MB, free: 8.953 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,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (34): * Single equations (assignments): 33 * 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.0001582/0.1327, allocations: 145.7 kB / 339.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.1328, allocations: 23.77 kB / 339.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.501e-05/0.1328, allocations: 26.17 kB / 339.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1328, allocations: 15.98 kB / 339.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1328, allocations: 0 / 339.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1328, allocations: 0 / 339.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.1331, allocations: 317.4 kB / 339.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1332, allocations: 0 / 339.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1333, allocations: 39.88 kB / 339.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.1335, allocations: 56.81 kB / 339.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.1335, allocations: 3.984 kB / 339.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.1346, allocations: 1.323 MB / 340.9 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1347, allocations: 0 / 340.9 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.1353, allocations: 334.4 kB / 341.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1355, allocations: 116.8 kB / 341.3 MB, free: 6.336 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.1355, allocations: 11.94 kB / 341.3 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.1357, allocations: 19.98 kB / 341.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.1358, allocations: 35.88 kB / 341.4 MB, free: 6.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.1358, allocations: 4 kB / 341.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.1359, allocations: 168.5 kB / 341.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1359, allocations: 0 / 341.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.1363, allocations: 75.84 kB / 341.6 MB, free: 6.027 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 (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.0001277/0.1364, allocations: 103.2 kB / 341.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.137, allocations: 286.5 kB / 342 MB, free: 5.625 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.137, allocations: 4.438 kB / 342 MB, free: 5.621 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.1373, allocations: 190.6 kB / 342.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.1375, allocations: 36.3 kB / 342.2 MB, free: 5.383 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.139, allocations: 0.8221 MB / 343.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1394, allocations: 0.7638 MB / 343.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.1395, allocations: 26.28 kB / 343.9 MB, free: 3.723 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.1396, allocations: 19.44 kB / 343.9 MB, free: 3.707 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1396, allocations: 0 / 343.9 MB, free: 3.707 MB / 286.1 MB Notification: Performance of Templates: time 0.006176/0.1458, allocations: 2.648 MB / 346.5 MB, free: 1.066 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches