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.001814/0.001814, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002284/0.002284, allocations: 204 kB / 23.73 MB, free: 4.379 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.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001596/0.001596, allocations: 56.05 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2422, allocations: 53.36 MB / 431.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0144/0.2566, allocations: 12.39 MB / 444 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.281, allocations: 17.89 MB / 461.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.2835, allocations: 134.5 kB / 462 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.2869, allocations: 1.131 MB / 463.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007602/0.2945, allocations: 2.363 MB / 465.5 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004812/0.2993, allocations: 1.414 MB / 466.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.3122, allocations: 6.599 MB / 473.5 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007454/0.3129, allocations: 277.7 kB / 473.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.3149, allocations: 1.155 MB / 474.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.3169, allocations: 1.11 MB / 476 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.3171, allocations: 76 kB / 476.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003729/0.3209, allocations: 1.233 MB / 477.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005249/0.3214, allocations: 329.6 kB / 477.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.323, allocations: 1.013 MB / 478.7 MB, free: 7.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006245/0.3292, allocations: 3.834 MB / 482.5 MB, free: 3.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3292, allocations: 4 kB / 482.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3292, allocations: 0 / 482.5 MB, free: 3.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.438e-05/0.3293, allocations: 0 / 482.5 MB, free: 3.574 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.006579/0.3359, allocations: 3.726 MB / 486.2 MB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3359, allocations: 12.03 kB / 486.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005023/0.3364, allocations: 409.4 kB / 486.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004004/0.3405, allocations: 2.303 MB / 489 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.3405, allocations: 37 kB / 489 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.3406, allocations: 48 kB / 489 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.3422, allocations: 0.7382 MB / 489.8 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.3423, allocations: 0 / 489.8 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.3423, allocations: 20 kB / 489.8 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.3424, allocations: 19.98 kB / 489.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3442, allocations: 0.8163 MB / 490.6 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005747/0.3499, allocations: 2.758 MB / 493.4 MB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.3512, allocations: 0.5202 MB / 493.9 MB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.3523, allocations: 0.5692 MB / 494.5 MB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02838/0.3807, allocations: 13.71 MB / 0.4963 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008475/0.3815, allocations: 369.6 kB / 0.4966 GB, free: 8.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/0.3815, allocations: 0 / 0.4966 GB, free: 8.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002621/0.3842, allocations: 1.103 MB / 0.4977 GB, free: 7.793 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.3842, allocations: 63.41 kB / 0.4978 GB, free: 7.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003796/0.388, allocations: 2.954 MB / 0.5007 GB, free: 4.754 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.733e-05/0.3881, allocations: 33.7 kB / 0.5007 GB, free: 4.715 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.3895, allocations: 1.502 MB / 0.5022 GB, free: 3.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.3897, allocations: 178.6 kB / 0.5023 GB, free: 3.027 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/0.39, allocations: 230.3 kB / 0.5025 GB, free: 2.797 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3902, allocations: 337.9 kB / 0.5029 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.3908, allocations: 245.9 kB / 0.5031 GB, free: 2.219 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009237/0.3918, allocations: 0.6017 MB / 0.5037 GB, free: 1.441 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.3934, allocations: 0.8974 MB / 0.5046 GB, free: 380 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.3934, allocations: 4 kB / 0.5046 GB, free: 376 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002399/0.3958, allocations: 1.239 MB / 0.5058 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.3958, allocations: 12 kB / 0.5058 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/0.3959, allocations: 80.84 kB / 0.5059 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.396, allocations: 16 kB / 0.5059 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.3968, allocations: 207.7 kB / 0.5061 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.3968, allocations: 27.86 kB / 0.5061 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.3978, allocations: 119.2 kB / 0.5062 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3979, allocations: 60 kB / 0.5063 GB, free: 14.61 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.0007907/0.3987, allocations: 441.4 kB / 0.5067 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004595/0.3992, allocations: 405.5 kB / 0.5071 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.402, allocations: 1.178 MB / 0.5082 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.402, allocations: 4 kB / 0.5082 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.402, allocations: 0 / 0.5082 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.402, allocations: 0 / 0.5082 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.4057, allocations: 1.95 MB / 0.5101 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001114/0.4058, allocations: 71.98 kB / 0.5102 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005322/0.4063, allocations: 95.92 kB / 0.5103 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.4063, allocations: 4 kB / 0.5103 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.4064, allocations: 31.98 kB / 0.5103 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.932e-06/0.4064, allocations: 4 kB / 0.5103 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4064, allocations: 0 / 0.5103 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.409, allocations: 1.318 MB / 0.5116 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.41, allocations: 415.2 kB / 0.512 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.4103, allocations: 15.98 kB / 0.512 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007466/0.4111, allocations: 28.03 kB / 0.5121 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.4112, allocations: 63.92 kB / 0.5121 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.183e-05/0.4113, allocations: 43.98 kB / 0.5122 GB, free: 8.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002704/0.414, allocations: 1.911 MB / 0.514 GB, free: 6.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.414, allocations: 0 / 0.514 GB, free: 6.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001471/0.4155, allocations: 0.5813 MB / 0.5146 GB, free: 5.988 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.001194/0.4167, allocations: 0.7841 MB / 0.5154 GB, free: 5.199 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.4184, allocations: 0.7788 MB / 0.5161 GB, free: 4.395 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4184, allocations: 0 / 0.5161 GB, free: 4.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000835/0.4192, allocations: 431.9 kB / 0.5165 GB, free: 3.949 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.4217, allocations: 0.5958 MB / 0.5171 GB, free: 3.348 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006374/0.4281, allocations: 4.391 MB / 0.5214 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.4292, allocations: 1.113 MB / 0.5225 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.4303, allocations: 361.1 kB / 0.5228 GB, free: 13.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.4305, allocations: 155.4 kB / 0.523 GB, free: 13.25 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4305, allocations: 0 / 0.523 GB, free: 13.25 MB / 446.1 MB Notification: Performance of Templates: time 0.2451/0.6756, allocations: 36.76 MB / 0.5589 GB, free: 91.11 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.143692223820835]