Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.971e-05, allocations: 3.781 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01438/0.0144, allocations: 12.41 MB / 337.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02521/0.03962, allocations: 17.91 MB / 355.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002821/0.04244, allocations: 134.6 kB / 355.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003488/0.04593, allocations: 1.133 MB / 356.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008286/0.05421, allocations: 2.429 MB / 359.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004423/0.05864, allocations: 1.441 MB / 360.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.07006, allocations: 6.785 MB / 367.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.07076, allocations: 261.8 kB / 367.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002255/0.07301, allocations: 1.555 MB / 369.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.07425, allocations: 0.7978 MB / 369.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002079/0.07446, allocations: 76 kB / 370 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.07781, allocations: 1.213 MB / 371.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003563/0.07816, allocations: 329.6 kB / 371.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.0793, allocations: 0.7398 MB / 372.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004951/0.08425, allocations: 3.76 MB / 376 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.08425, allocations: 0 / 376 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.08425, allocations: 0 / 376 MB, free: 2.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.218e-05/0.08429, allocations: 0 / 376 MB, free: 2.016 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.005745/0.09003, allocations: 3.691 MB / 379.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.09007, allocations: 15.97 kB / 379.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/0.09057, allocations: 409.4 kB / 380.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.09435, allocations: 2.295 MB / 382.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.744e-05/0.0944, allocations: 37 kB / 382.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.09454, allocations: 55.92 kB / 382.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.09616, allocations: 0.7304 MB / 383.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.09618, allocations: 0 / 383.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.982e-05/0.09626, allocations: 27.98 kB / 383.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.09628, allocations: 16 kB / 383.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.09804, allocations: 0.8202 MB / 384.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005615/0.1037, allocations: 2.747 MB / 386.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.105, allocations: 0.5242 MB / 387.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.1061, allocations: 0.5653 MB / 387.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0264/0.1325, allocations: 13.72 MB / 401.7 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008437/0.1333, allocations: 366 kB / 402 MB, free: 7.387 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.1333, allocations: 0 / 402 MB, free: 7.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002484/0.1358, allocations: 1.112 MB / 403.1 MB, free: 6.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.1359, allocations: 63.39 kB / 403.2 MB, free: 6.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003694/0.1396, allocations: 2.954 MB / 406.1 MB, free: 3.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.77e-05/0.1397, allocations: 37.7 kB / 406.2 MB, free: 3.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.1411, allocations: 1.495 MB / 407.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.1413, allocations: 170.6 kB / 407.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003257/0.1416, allocations: 230.3 kB / 408.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1418, allocations: 338 kB / 408.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006461/0.1425, allocations: 245.8 kB / 408.6 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000962/0.1434, allocations: 0.6017 MB / 409.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.1451, allocations: 0.8906 MB / 410.1 MB, free: 14.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.1451, allocations: 8 kB / 410.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002344/0.1475, allocations: 1.24 MB / 411.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.1475, allocations: 11.94 kB / 411.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/0.1476, allocations: 80 kB / 411.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.67e-05/0.1477, allocations: 24.8 kB / 411.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007876/0.1484, allocations: 203.6 kB / 411.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/0.1485, allocations: 23.92 kB / 411.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009671/0.1494, allocations: 115.2 kB / 411.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.1496, allocations: 67.98 kB / 411.9 MB, free: 13.1 MB / 382.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.0007401/0.1503, allocations: 433.5 kB / 412.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004191/0.1507, allocations: 401.5 kB / 412.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002827/0.1535, allocations: 1.198 MB / 413.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1535, allocations: 4 kB / 413.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1535, allocations: 0 / 413.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.1536, allocations: 3.984 kB / 413.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003505/0.1571, allocations: 1.932 MB / 415.8 MB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001043/0.1572, allocations: 71.94 kB / 415.9 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.1577, allocations: 95.92 kB / 416 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.1577, allocations: 4 kB / 416 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.13e-05/0.1578, allocations: 35.98 kB / 416 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1578, allocations: 4 kB / 416 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1578, allocations: 0 / 416 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.1604, allocations: 1.312 MB / 417.4 MB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007624/0.1611, allocations: 435 kB / 417.8 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.1614, allocations: 8 kB / 417.8 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000721/0.1622, allocations: 28.03 kB / 417.8 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.1623, allocations: 63.92 kB / 417.9 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.027e-05/0.1624, allocations: 36 kB / 417.9 MB, free: 6.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002653/0.1651, allocations: 1.907 MB / 419.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1651, allocations: 4 kB / 419.8 MB, free: 5.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001397/0.1665, allocations: 0.5814 MB / 420.4 MB, free: 4.473 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.00133/0.1678, allocations: 0.8198 MB / 421.2 MB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.1697, allocations: 0.7783 MB / 422 MB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1697, allocations: 0 / 422 MB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008791/0.1705, allocations: 431.9 kB / 422.4 MB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.1732, allocations: 0.6075 MB / 423 MB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006646/0.1799, allocations: 4.315 MB / 427.4 MB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.1811, allocations: 1.113 MB / 428.5 MB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.1821, allocations: 357.1 kB / 428.8 MB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.1823, allocations: 152.5 kB / 429 MB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1823, allocations: 4 kB / 429 MB, free: 11.77 MB / 398.1 MB Notification: Performance of Templates: time 0.05991/0.2423, allocations: 32.29 MB / 461.3 MB, free: 11.98 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.531474616378546]