Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001046/0.001046, allocations: 91.73 kB / 16.3 MB, free: 6.457 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.0009558/0.0009558, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002544, allocations: 6.156 kB / 300.7 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1079, allocations: 50.43 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002965/0.1109, allocations: 2.312 MB / 353.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1121, allocations: 0.7055 MB / 354.2 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.1122, allocations: 8 kB / 354.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.161e-05/0.1123, allocations: 35.73 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.1125, allocations: 103.7 kB / 354.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.1128, allocations: 83.78 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.1131, allocations: 259.3 kB / 354.6 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1133, allocations: 90.33 kB / 354.7 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.1134, allocations: 115.6 kB / 354.8 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.1136, allocations: 127.4 kB / 355 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.721e-05/0.1136, allocations: 20 kB / 355 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.39e-05/0.1137, allocations: 16 kB / 355 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.1137, allocations: 51.81 kB / 355 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.1138, allocations: 85.58 kB / 355.1 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.114, allocations: 263.2 kB / 355.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.114, allocations: 0 / 355.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.114, allocations: 0 / 355.4 MB, free: 7.457 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1141, allocations: 0 / 355.4 MB, free: 7.457 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.0008969/0.115, allocations: 0.5587 MB / 355.9 MB, free: 6.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.115, allocations: 12.03 kB / 356 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.828e-05/0.1151, allocations: 35.58 kB / 356 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.1154, allocations: 255.2 kB / 356.2 MB, free: 6.516 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-05/0.1155, allocations: 80.05 kB / 356.3 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.1156, allocations: 24 kB / 356.3 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004512/0.116, allocations: 297.7 kB / 356.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.116, allocations: 3.984 kB / 356.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.1161, allocations: 12 kB / 356.6 MB, free: 6.086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.1161, allocations: 11.95 kB / 356.7 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.1164, allocations: 182.1 kB / 356.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.1179, allocations: 1.139 MB / 358 MB, free: 4.676 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.1182, allocations: 162.5 kB / 358.1 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1183, allocations: 4 kB / 358.1 MB, free: 4.504 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.1185, allocations: 159.4 kB / 358.3 MB, free: 4.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1185, allocations: 0 / 358.3 MB, free: 4.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009691/0.1195, allocations: 395.5 kB / 358.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.1196, allocations: 106.8 kB / 358.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.1198, allocations: 228.9 kB / 359 MB, free: 3.555 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.1198, allocations: 25.7 kB / 359 MB, free: 3.523 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.12, allocations: 188.1 kB / 359.2 MB, free: 3.336 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.538e-05/0.12, allocations: 67.09 kB / 359.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.12, allocations: 8 kB / 359.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1202, allocations: 335.1 kB / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.1203, allocations: 59.98 kB / 359.7 MB, free: 2.867 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.1205, allocations: 148.6 kB / 359.8 MB, free: 2.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.1206, allocations: 73.16 kB / 359.9 MB, free: 2.617 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1206, allocations: 0 / 359.9 MB, free: 2.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003911/0.121, allocations: 280.6 kB / 360.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.121, allocations: 4 kB / 360.2 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.121, allocations: 4 kB / 360.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002369/0.1213, allocations: 61.03 kB / 360.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.1215, allocations: 47.92 kB / 360.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.1226, allocations: 1.409 MB / 361.7 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.1228, allocations: 43.7 kB / 361.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1229, allocations: 12 kB / 361.7 MB, free: 0.6211 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.0001332/0.123, allocations: 150 kB / 361.9 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.123, allocations: 19.81 kB / 361.9 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.274e-05/0.1231, allocations: 26.19 kB / 361.9 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1231, allocations: 3.984 kB / 361.9 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1231, allocations: 4 kB / 361.9 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1231, allocations: 3.953 kB / 361.9 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.1234, allocations: 317.3 kB / 362.3 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1234, allocations: 0 / 362.3 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1236, allocations: 31.92 kB / 362.3 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001781/0.1238, allocations: 60.81 kB / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.1238, allocations: 7.984 kB / 362.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009806/0.1248, allocations: 1.339 MB / 363.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1248, allocations: 3.938 kB / 363.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.1254, allocations: 338.8 kB / 364 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.072e-05/0.1255, allocations: 108.8 kB / 364.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.1255, allocations: 8 kB / 364.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.1257, allocations: 24.05 kB / 364.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.702e-05/0.1258, allocations: 35.89 kB / 364.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.1258, allocations: 4 kB / 364.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.1259, allocations: 160.5 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1259, allocations: 4 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.1262, allocations: 79.78 kB / 364.4 MB, free: 13.68 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: 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.0001092/0.1264, allocations: 103.2 kB / 364.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.1268, allocations: 287.2 kB / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1268, allocations: 0 / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.1271, allocations: 186.6 kB / 365 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.1273, allocations: 43.75 kB / 365.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1288, allocations: 0.8214 MB / 365.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.129, allocations: 0.7638 MB / 366.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.383e-05/0.1291, allocations: 30.27 kB / 366.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.1292, allocations: 19.44 kB / 366.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1292, allocations: 0 / 366.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Templates: time 0.005583/0.1348, allocations: 2.64 MB / 369.3 MB, free: 8.742 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches