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.001774/0.001774, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002159/0.002159, allocations: 214.4 kB / 23.73 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.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 0.001576/0.001576, allocations: 51.92 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2367, allocations: 53.37 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01508/0.2518, allocations: 12.38 MB / 444 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.2764, allocations: 17.91 MB / 461.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001868/0.2783, allocations: 134.6 kB / 462 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002977/0.2813, allocations: 1.131 MB / 463.1 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006887/0.2881, allocations: 2.355 MB / 465.5 MB, free: 4.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004358/0.2925, allocations: 1.418 MB / 466.9 MB, free: 3.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.3033, allocations: 6.599 MB / 473.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000629/0.3039, allocations: 269.7 kB / 473.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001908/0.3058, allocations: 1.147 MB / 474.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00172/0.3075, allocations: 1.067 MB / 476 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002334/0.3077, allocations: 72 kB / 476 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003441/0.3112, allocations: 1.202 MB / 477.2 MB, free: 8.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003447/0.3115, allocations: 333.5 kB / 477.6 MB, free: 8.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.3128, allocations: 1.013 MB / 478.6 MB, free: 7.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005431/0.3182, allocations: 3.83 MB / 482.4 MB, free: 3.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.3182, allocations: 4 kB / 482.4 MB, free: 3.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3182, allocations: 0 / 482.4 MB, free: 3.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.82e-05/0.3183, allocations: 0 / 482.4 MB, free: 3.648 MB / 382.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.006122/0.3244, allocations: 3.73 MB / 486.2 MB, free: 15.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.3245, allocations: 12.03 kB / 486.2 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006032/0.3251, allocations: 417.4 kB / 486.6 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003989/0.3291, allocations: 2.288 MB / 488.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.3291, allocations: 41 kB / 488.9 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3293, allocations: 55.98 kB / 489 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.3307, allocations: 0.7265 MB / 489.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.3308, allocations: 0 / 489.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.157e-05/0.3308, allocations: 20 kB / 489.7 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.3309, allocations: 23.98 kB / 489.7 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.3325, allocations: 0.8202 MB / 490.5 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005818/0.3383, allocations: 2.762 MB / 493.3 MB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3396, allocations: 0.5086 MB / 493.8 MB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3407, allocations: 0.5692 MB / 494.4 MB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02716/0.3678, allocations: 13.72 MB / 0.4962 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000825/0.3686, allocations: 365.6 kB / 0.4965 GB, free: 8.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.3686, allocations: 0 / 0.4965 GB, free: 8.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002468/0.3711, allocations: 1.107 MB / 0.4976 GB, free: 7.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.3712, allocations: 67.34 kB / 0.4977 GB, free: 7.789 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/0.375, allocations: 2.954 MB / 0.5006 GB, free: 4.824 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.179e-05/0.3751, allocations: 33.7 kB / 0.5006 GB, free: 4.785 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.3766, allocations: 1.495 MB / 0.5021 GB, free: 3.281 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.3767, allocations: 178.6 kB / 0.5022 GB, free: 3.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003416/0.3771, allocations: 234.3 kB / 0.5025 GB, free: 2.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3773, allocations: 341.9 kB / 0.5028 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.3779, allocations: 237.9 kB / 0.503 GB, free: 2.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009318/0.3788, allocations: 0.6056 MB / 0.5036 GB, free: 1.512 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.3804, allocations: 0.8896 MB / 0.5045 GB, free: 460 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.3804, allocations: 8 kB / 0.5045 GB, free: 452 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002355/0.3828, allocations: 1.243 MB / 0.5057 GB, free: 15.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.3828, allocations: 8.188 kB / 0.5057 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.3829, allocations: 87.98 kB / 0.5058 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.575e-05/0.383, allocations: 20 kB / 0.5058 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.3837, allocations: 191.7 kB / 0.506 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.998e-05/0.3838, allocations: 31.86 kB / 0.506 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3848, allocations: 111.3 kB / 0.5061 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.3849, allocations: 71.98 kB / 0.5062 GB, free: 14.68 MB / 430.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.0007855/0.3857, allocations: 433.5 kB / 0.5066 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004206/0.3861, allocations: 401.4 kB / 0.507 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002669/0.3887, allocations: 1.19 MB / 0.5081 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/0.3888, allocations: 11.94 kB / 0.5082 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3888, allocations: 0 / 0.5082 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3888, allocations: 3.984 kB / 0.5082 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003439/0.3922, allocations: 1.946 MB / 0.5101 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001194/0.3923, allocations: 68 kB / 0.5101 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005068/0.3928, allocations: 87.86 kB / 0.5102 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.3928, allocations: 7.984 kB / 0.5102 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.498e-05/0.3929, allocations: 32 kB / 0.5102 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.3929, allocations: 0 / 0.5102 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.3929, allocations: 4.062 kB / 0.5103 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.3956, allocations: 1.322 MB / 0.5115 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.3966, allocations: 415.2 kB / 0.5119 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.3969, allocations: 12 kB / 0.512 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006842/0.3976, allocations: 27.97 kB / 0.512 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.3978, allocations: 63.92 kB / 0.512 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.3979, allocations: 36 kB / 0.5121 GB, free: 8.559 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002965/0.4008, allocations: 1.907 MB / 0.5139 GB, free: 6.652 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4008, allocations: 0 / 0.5139 GB, free: 6.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001548/0.4024, allocations: 0.5853 MB / 0.5145 GB, free: 6.066 MB / 430.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.001177/0.4035, allocations: 0.7878 MB / 0.5153 GB, free: 5.273 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.4052, allocations: 0.7716 MB / 0.516 GB, free: 4.477 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4053, allocations: 3.938 kB / 0.516 GB, free: 4.473 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.4061, allocations: 431.1 kB / 0.5164 GB, free: 4.027 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.4087, allocations: 0.5959 MB / 0.517 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006554/0.4152, allocations: 4.41 MB / 0.5213 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.4164, allocations: 1.109 MB / 0.5224 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.4174, allocations: 353.2 kB / 0.5228 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.4177, allocations: 155.4 kB / 0.5229 GB, free: 13.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4177, allocations: 0 / 0.5229 GB, free: 13.32 MB / 446.1 MB Notification: Performance of Templates: time 0.2357/0.6534, allocations: 36.55 MB / 0.5586 GB, free: 91.34 MB / 446.1 MB " [Timeout remaining time 659] 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: 6.027369378134608]