Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001279/0.001279, allocations: 78.88 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001307/0.001307, allocations: 153.5 kB / 23.94 MB, free: 4.176 MB / 14.72 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 1.403/1.403, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 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.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.744e-05/1.865e-05, allocations: 2.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01199/0.01201, allocations: 12.38 MB / 331.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02543/0.03744, allocations: 17.87 MB / 349.2 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002892/0.04034, allocations: 134.6 kB / 349.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003528/0.04386, allocations: 1.153 MB / 350.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008117/0.05198, allocations: 2.417 MB / 352.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004626/0.05661, allocations: 1.445 MB / 354.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01138/0.06799, allocations: 6.699 MB / 361 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006921/0.06868, allocations: 265.8 kB / 361.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.07091, allocations: 1.555 MB / 362.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.07216, allocations: 0.7979 MB / 363.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.07236, allocations: 72 kB / 363.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003783/0.07614, allocations: 1.213 MB / 364.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003601/0.0765, allocations: 329.6 kB / 365.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001169/0.07767, allocations: 0.7398 MB / 366 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005247/0.08291, allocations: 3.756 MB / 369.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.08292, allocations: 3.938 kB / 369.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.08292, allocations: 0 / 369.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.209e-05/0.08295, allocations: 0 / 369.7 MB, free: 8.68 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005484/0.08844, allocations: 3.691 MB / 373.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.08848, allocations: 8.922 kB / 373.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004708/0.08895, allocations: 413.4 kB / 373.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003548/0.0925, allocations: 2.295 MB / 376.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.344e-05/0.09255, allocations: 37 kB / 376.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.09269, allocations: 59.88 kB / 376.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.09418, allocations: 0.7304 MB / 377 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.09419, allocations: 0 / 377 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.72e-05/0.09427, allocations: 20 kB / 377 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.09429, allocations: 19.98 kB / 377 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.09603, allocations: 0.8163 MB / 377.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/0.1012, allocations: 2.751 MB / 380.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.1025, allocations: 0.5164 MB / 381.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.1036, allocations: 0.577 MB / 381.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02591/0.1295, allocations: 13.68 MB / 395.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008451/0.1304, allocations: 369.8 kB / 395.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.1304, allocations: 0 / 395.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002443/0.1328, allocations: 1.112 MB / 396.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.1329, allocations: 67.39 kB / 396.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003757/0.1366, allocations: 2.95 MB / 399.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.473e-05/0.1367, allocations: 37.7 kB / 399.9 MB, free: 9.883 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.1382, allocations: 1.491 MB / 401.3 MB, free: 8.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.1384, allocations: 174.6 kB / 401.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000331/0.1387, allocations: 226.4 kB / 401.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1389, allocations: 337.9 kB / 402.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.1396, allocations: 245.8 kB / 402.3 MB, free: 7.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.1406, allocations: 0.6017 MB / 402.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.1422, allocations: 0.8983 MB / 403.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.1422, allocations: 8 kB / 403.8 MB, free: 5.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002295/0.1445, allocations: 1.241 MB / 405.1 MB, free: 4.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.1446, allocations: 19.91 kB / 405.1 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.1447, allocations: 80 kB / 405.2 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.351e-05/0.1447, allocations: 20 kB / 405.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.1455, allocations: 191.7 kB / 405.4 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.285e-05/0.1455, allocations: 35.84 kB / 405.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009444/0.1465, allocations: 111.3 kB / 405.5 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.1466, allocations: 64 kB / 405.6 MB, free: 3.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007271/0.1473, allocations: 440.7 kB / 406 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003874/0.1477, allocations: 397.5 kB / 406.4 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/0.1505, allocations: 1.206 MB / 407.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.1505, allocations: 12 kB / 407.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1505, allocations: 0 / 407.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.1505, allocations: 0 / 407.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.1539, allocations: 1.932 MB / 409.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.154, allocations: 71.94 kB / 409.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.1545, allocations: 91.86 kB / 409.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.1545, allocations: 4 kB / 409.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-05/0.1546, allocations: 31.98 kB / 409.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1546, allocations: 0 / 409.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1546, allocations: 8.062 kB / 409.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.157, allocations: 1.313 MB / 411.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000729/0.1578, allocations: 419.1 kB / 411.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/0.1581, allocations: 15.98 kB / 411.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.1588, allocations: 31.97 kB / 411.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.1589, allocations: 63.92 kB / 411.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.901e-05/0.159, allocations: 36 kB / 411.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002539/0.1616, allocations: 1.903 MB / 413.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1616, allocations: 3.938 kB / 413.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001353/0.1629, allocations: 0.5931 MB / 414.1 MB, free: 11.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001282/0.1642, allocations: 0.8114 MB / 414.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.1659, allocations: 0.783 MB / 415.7 MB, free: 9.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1659, allocations: 3.938 kB / 415.7 MB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000875/0.1668, allocations: 431.5 kB / 416.1 MB, free: 9.082 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.1694, allocations: 0.6081 MB / 416.7 MB, free: 8.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006374/0.1757, allocations: 4.288 MB / 421 MB, free: 4.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.1769, allocations: 1.113 MB / 422.1 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001007/0.1779, allocations: 361.1 kB / 422.5 MB, free: 2.633 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.1782, allocations: 156.5 kB / 422.6 MB, free: 2.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1782, allocations: 0 / 422.6 MB, free: 2.48 MB / 382.1 MB Notification: Performance of Templates: time 0.05878/0.237, allocations: 32.24 MB / 454.9 MB, free: 2.738 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.285865884274244]