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.001716/0.001716, allocations: 113 kB / 19.04 MB, free: 3.254 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.00195/0.00195, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.408/1.408, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001561/0.001561, allocations: 43.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2419, allocations: 52.13 MB / 420.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01667/0.2585, allocations: 14.79 MB / 435.6 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02688/0.2854, allocations: 20.75 MB / 456.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002384/0.2878, allocations: 87.31 kB / 456.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003508/0.2913, allocations: 1.245 MB / 457.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007692/0.299, allocations: 2.35 MB / 460.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004728/0.3037, allocations: 1.456 MB / 461.5 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.3145, allocations: 6.508 MB / 468 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008212/0.3154, allocations: 265.2 kB / 468.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.3174, allocations: 1.104 MB / 469.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.3191, allocations: 1.118 MB / 470.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002038/0.3193, allocations: 72 kB / 470.6 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004128/0.3235, allocations: 1.479 MB / 472.1 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004055/0.3239, allocations: 329.6 kB / 472.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001618/0.3255, allocations: 1.37 MB / 473.8 MB, free: 9.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005991/0.3315, allocations: 3.784 MB / 477.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3315, allocations: 0 / 477.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3315, allocations: 0 / 477.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.02e-05/0.3316, allocations: 0 / 477.5 MB, free: 6.145 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.005728/0.3373, allocations: 3.817 MB / 481.4 MB, free: 2.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3373, allocations: 8.031 kB / 481.4 MB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.3378, allocations: 413.4 kB / 481.8 MB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003765/0.3416, allocations: 2.453 MB / 484.2 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.3416, allocations: 37 kB / 484.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3418, allocations: 51.95 kB / 484.3 MB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3433, allocations: 0.7343 MB / 485 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.3433, allocations: 3.938 kB / 485 MB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/0.3434, allocations: 27.92 kB / 485.1 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.3434, allocations: 16 kB / 485.1 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.345, allocations: 0.8202 MB / 485.9 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005553/0.3506, allocations: 3.044 MB / 489 MB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.3518, allocations: 0.5165 MB / 489.5 MB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009718/0.3527, allocations: 0.5579 MB / 490 MB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03271/0.3855, allocations: 30.13 MB / 0.508 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007847/0.3862, allocations: 365.7 kB / 0.5083 GB, free: 6.789 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3862, allocations: 0 / 0.5083 GB, free: 6.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002322/0.3886, allocations: 1.114 MB / 0.5094 GB, free: 5.668 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.3886, allocations: 59.41 kB / 0.5095 GB, free: 5.598 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.3924, allocations: 2.931 MB / 0.5123 GB, free: 2.656 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.163e-05/0.3924, allocations: 41.7 kB / 0.5124 GB, free: 2.609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/0.3938, allocations: 1.495 MB / 0.5138 GB, free: 1.105 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.3939, allocations: 178.6 kB / 0.514 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.3943, allocations: 226.4 kB / 0.5142 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3944, allocations: 341.9 kB / 0.5145 GB, free: 372 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005712/0.395, allocations: 241.9 kB / 0.5148 GB, free: 132 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009023/0.3959, allocations: 0.5981 MB / 0.5153 GB, free: 15.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.3974, allocations: 0.8935 MB / 0.5162 GB, free: 14.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3974, allocations: 7.938 kB / 0.5162 GB, free: 14.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00216/0.3995, allocations: 1.243 MB / 0.5174 GB, free: 13.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3996, allocations: 12.94 kB / 0.5175 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001166/0.3997, allocations: 83.98 kB / 0.5175 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.023e-05/0.3997, allocations: 16 kB / 0.5176 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007118/0.4004, allocations: 207.6 kB / 0.5177 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.929e-05/0.4004, allocations: 23.94 kB / 0.5178 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.4014, allocations: 115.2 kB / 0.5179 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.4015, allocations: 64 kB / 0.5179 GB, free: 12.52 MB / 446.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.0007298/0.4022, allocations: 438.1 kB / 0.5184 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003994/0.4026, allocations: 397.5 kB / 0.5187 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.4052, allocations: 1.205 MB / 0.5199 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.4052, allocations: 4 kB / 0.5199 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4052, allocations: 8 kB / 0.5199 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4052, allocations: 3.984 kB / 0.5199 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003332/0.4086, allocations: 2.089 MB / 0.522 GB, free: 8.293 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.984e-05/0.4087, allocations: 68 kB / 0.522 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/0.4091, allocations: 91.86 kB / 0.5221 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.4091, allocations: 0 / 0.5221 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.4092, allocations: 35.98 kB / 0.5222 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-05/0.4092, allocations: 8.062 kB / 0.5222 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4092, allocations: 0 / 0.5222 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.4115, allocations: 1.31 MB / 0.5234 GB, free: 6.758 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007033/0.4122, allocations: 498.4 kB / 0.5239 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/0.4125, allocations: 8 kB / 0.5239 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006356/0.4131, allocations: 36.02 kB / 0.524 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.4133, allocations: 71.77 kB / 0.524 GB, free: 6.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.312e-05/0.4133, allocations: 39.98 kB / 0.5241 GB, free: 6.098 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.4158, allocations: 1.899 MB / 0.5259 GB, free: 4.199 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4158, allocations: 0 / 0.5259 GB, free: 4.199 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001293/0.4171, allocations: 0.5891 MB / 0.5265 GB, free: 3.609 MB / 446.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.001139/0.4183, allocations: 0.773 MB / 0.5273 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4199, allocations: 0.7741 MB / 0.528 GB, free: 2.031 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4199, allocations: 0 / 0.528 GB, free: 2.031 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007729/0.4206, allocations: 431.8 kB / 0.5284 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.4229, allocations: 0.6114 MB / 0.529 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/0.429, allocations: 4.403 MB / 0.5333 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.4303, allocations: 1.665 MB / 0.5349 GB, free: 10.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009218/0.4312, allocations: 357.1 kB / 0.5353 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.4314, allocations: 147.4 kB / 0.5354 GB, free: 10.32 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4314, allocations: 0 / 0.5354 GB, free: 10.32 MB / 462.1 MB Notification: Performance of Templates: time 0.2374/0.6688, allocations: 31.69 MB / 0.5664 GB, free: 115.5 MB / 462.1 MB " [Timeout remaining time 659] 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.6547975251451135]