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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 150.2 kB / 24.81 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9742/0.9742, allocations: 173.3 MB / 201.4 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] 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=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.159e-05/2.306e-05, allocations: 2.312 kB / 268.4 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003342/0.003365, allocations: 2.854 MB / 271.3 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009564/0.004321, allocations: 0.7127 MB / 272 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.004435, allocations: 4 kB / 272 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.004564, allocations: 51.5 kB / 272 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.004709, allocations: 99.06 kB / 272.1 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.004966, allocations: 99.67 kB / 272.2 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.005245, allocations: 386.2 kB / 272.6 MB, free: 1.949 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.00539, allocations: 83.61 kB / 272.7 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.00557, allocations: 219.5 kB / 272.9 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.00572, allocations: 115.7 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.005758, allocations: 32 kB / 273.1 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.388e-05/0.005792, allocations: 32 kB / 273.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.005838, allocations: 67.75 kB / 273.1 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.437e-05/0.005922, allocations: 119.7 kB / 273.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.006138, allocations: 243.1 kB / 273.5 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.006142, allocations: 3.984 kB / 273.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.006142, allocations: 0 / 273.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.006146, allocations: 0 / 273.5 MB, free: 1.047 MB / 250.7 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.0006159/0.006762, allocations: 0.6338 MB / 274.1 MB, free: 388 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.006795, allocations: 8.922 kB / 274.2 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.295e-05/0.006858, allocations: 64.7 kB / 274.2 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.007047, allocations: 208.1 kB / 274.4 MB, free: 80 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.007133, allocations: 132 kB / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.007166, allocations: 32.33 kB / 274.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.007414, allocations: 307 kB / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.007424, allocations: 192 / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.007444, allocations: 16.12 kB / 274.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.007451, allocations: 7.938 kB / 274.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.007562, allocations: 92.44 kB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009014/0.008463, allocations: 1.049 MB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.008617, allocations: 127 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.891e-05/0.008666, allocations: 43.66 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.00868, allocations: 4 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.008859, allocations: 198.6 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 9.62e-07/0.00886, allocations: 0 / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004234/0.009283, allocations: 237.3 kB / 276.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.009321, allocations: 106.8 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.009434, allocations: 246.7 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.00945, allocations: 29.7 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.009601, allocations: 239.1 kB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.009641, allocations: 75.39 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-05/0.009701, allocations: 59.3 kB / 277.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.009804, allocations: 0.504 MB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.853e-05/0.009843, allocations: 31.97 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.897e-05/0.009942, allocations: 204 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.01006, allocations: 150.8 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01006, allocations: 0 / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002014/0.01026, allocations: 227.2 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.01028, allocations: 7.984 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.01028, allocations: 4 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001239/0.01041, allocations: 43.88 kB / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.01052, allocations: 55.91 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008968/0.01142, allocations: 1.958 MB / 280.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.937e-05/0.01152, allocations: 39.86 kB / 280.6 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.01153, allocations: 8 kB / 280.6 MB, free: 9.422 MB / 266.7 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 8.615e-05/0.01162, allocations: 176.5 kB / 280.8 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.01164, allocations: 27.89 kB / 280.8 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.01166, allocations: 29.91 kB / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-06/0.01166, allocations: 0 / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.01167, allocations: 0 / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.01167, allocations: 11.92 kB / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01181, allocations: 181 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01181, allocations: 0 / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.01189, allocations: 27.98 kB / 281 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.432e-05/0.01198, allocations: 43.64 kB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.01199, allocations: 4 kB / 281.1 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008745/0.01286, allocations: 1.74 MB / 282.8 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01286, allocations: 0 / 282.8 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.01312, allocations: 252.4 kB / 283.1 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.01316, allocations: 35.77 kB / 283.1 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.01318, allocations: 4.156 kB / 283.1 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.345e-05/0.01324, allocations: 19.98 kB / 283.1 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.0133, allocations: 27.94 kB / 283.2 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.026e-06/0.01331, allocations: 8 kB / 283.2 MB, free: 6.676 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.438e-05/0.01337, allocations: 173.3 kB / 283.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01337, allocations: 0 / 283.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002256/0.0136, allocations: 83.84 kB / 283.4 MB, free: 6.426 MB / 266.7 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 8.348e-05/0.01368, allocations: 110.5 kB / 283.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002743/0.01395, allocations: 301 kB / 283.8 MB, free: 5.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01396, allocations: 0 / 283.8 MB, free: 5.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.01409, allocations: 233.7 kB / 284 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.01426, allocations: 34.64 kB / 284.1 MB, free: 5.711 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008758/0.01513, allocations: 0.5771 MB / 284.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.102e-05/0.01517, allocations: 88.25 kB / 284.7 MB, free: 4.996 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.549e-05/0.01523, allocations: 25.94 kB / 284.8 MB, free: 4.973 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.01533, allocations: 114.2 kB / 284.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01533, allocations: 0 / 284.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of Templates: time 0.004686/0.02002, allocations: 3.127 MB / 288 MB, free: 1.777 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7179707740433514]