Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001858/0.001858, allocations: 80.66 kB / 21.99 MB, free: 4.746 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.002176/0.002176, allocations: 153.8 kB / 25.25 MB, free: 2.742 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 158.6 MB / 187 MB, free: 6.348 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 59.92 kB / 299.3 MB, free: 6.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1938, allocations: 49.15 MB / 348.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01353/0.2074, allocations: 11.82 MB / 360.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02265/0.23, allocations: 17.04 MB / 377.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.2321, allocations: 138.5 kB / 377.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003079/0.2352, allocations: 1.108 MB / 378.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006877/0.242, allocations: 2.309 MB / 380.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004148/0.2462, allocations: 1.367 MB / 382.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.2568, allocations: 6.4 MB / 388.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.2574, allocations: 257.9 kB / 388.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.2588, allocations: 1.046 MB / 390 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.2602, allocations: 1.048 MB / 391 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.2604, allocations: 80 kB / 391.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.2635, allocations: 1.081 MB / 392.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.2638, allocations: 321.7 kB / 392.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.2651, allocations: 1.024 MB / 393.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005227/0.2703, allocations: 3.854 MB / 397.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2703, allocations: 0 / 397.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2703, allocations: 0 / 397.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.181e-05/0.2704, allocations: 4 kB / 397.4 MB, free: 14.44 MB / 366.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.005782/0.2761, allocations: 3.761 MB / 401.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2762, allocations: 15.98 kB / 401.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.2767, allocations: 421.4 kB / 401.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.2805, allocations: 2.304 MB / 403.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.2805, allocations: 44.92 kB / 403.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.2807, allocations: 55.94 kB / 404 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.2822, allocations: 0.7304 MB / 404.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.2822, allocations: 0 / 404.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.2823, allocations: 27.98 kB / 404.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.2823, allocations: 16 kB / 404.7 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.284, allocations: 0.8202 MB / 405.6 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005598/0.2896, allocations: 2.766 MB / 408.3 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.2909, allocations: 0.5241 MB / 408.8 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.2919, allocations: 0.5652 MB / 409.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02685/0.3188, allocations: 13.74 MB / 423.1 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008335/0.3196, allocations: 365.9 kB / 423.5 MB, free: 3.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.3196, allocations: 0 / 423.5 MB, free: 3.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002435/0.322, allocations: 1.108 MB / 424.6 MB, free: 2.551 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.3221, allocations: 63.39 kB / 424.7 MB, free: 2.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003857/0.326, allocations: 2.971 MB / 427.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.326, allocations: 33.7 kB / 427.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.3275, allocations: 1.51 MB / 429.2 MB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.3277, allocations: 178.6 kB / 429.4 MB, free: 13.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.328, allocations: 226.4 kB / 429.6 MB, free: 13.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3282, allocations: 345.9 kB / 429.9 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000654/0.3288, allocations: 237.9 kB / 430.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009668/0.3298, allocations: 0.6095 MB / 430.8 MB, free: 12.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.3315, allocations: 0.8984 MB / 431.7 MB, free: 11.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.3315, allocations: 4 kB / 431.7 MB, free: 11.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002431/0.3339, allocations: 1.248 MB / 432.9 MB, free: 9.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3339, allocations: 8 kB / 432.9 MB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.3341, allocations: 87.98 kB / 433 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.3341, allocations: 19.98 kB / 433 MB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007611/0.3349, allocations: 195.7 kB / 433.2 MB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.854e-05/0.3349, allocations: 28.11 kB / 433.2 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009252/0.3358, allocations: 119.3 kB / 433.4 MB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3359, allocations: 64 kB / 433.4 MB, free: 9.332 MB / 398.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.0007661/0.3367, allocations: 429.5 kB / 433.8 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.3371, allocations: 405.4 kB / 434.2 MB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.3398, allocations: 1.202 MB / 435.4 MB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3398, allocations: 8 kB / 435.5 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3398, allocations: 0 / 435.5 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3398, allocations: 3.984 kB / 435.5 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.3435, allocations: 1.944 MB / 437.4 MB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000108/0.3436, allocations: 72 kB / 437.5 MB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005583/0.3441, allocations: 95.92 kB / 437.6 MB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3441, allocations: 4 kB / 437.6 MB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.487e-05/0.3442, allocations: 31.98 kB / 437.6 MB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.331e-05/0.3442, allocations: 7.984 kB / 437.6 MB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.3442, allocations: 0 / 437.6 MB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.3469, allocations: 1.325 MB / 438.9 MB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008704/0.3477, allocations: 423.2 kB / 439.3 MB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.348, allocations: 11.98 kB / 439.4 MB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006937/0.3487, allocations: 28.03 kB / 439.4 MB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.3489, allocations: 67.91 kB / 439.5 MB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.111e-05/0.349, allocations: 36 kB / 439.5 MB, free: 3.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002873/0.3518, allocations: 1.92 MB / 441.4 MB, free: 1.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3518, allocations: 0 / 441.4 MB, free: 1.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001458/0.3533, allocations: 0.5891 MB / 442 MB, free: 0.6641 MB / 398.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.001217/0.3545, allocations: 0.7725 MB / 442.8 MB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.3563, allocations: 0.7868 MB / 443.6 MB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3563, allocations: 0 / 443.6 MB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008287/0.3571, allocations: 427.6 kB / 444 MB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.3589, allocations: 0.5179 MB / 444.5 MB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006532/0.3654, allocations: 4.421 MB / 448.9 MB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.3665, allocations: 1.114 MB / 450 MB, free: 8.492 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.3676, allocations: 361.2 kB / 450.4 MB, free: 8.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.3679, allocations: 156.5 kB / 450.5 MB, free: 7.98 MB / 414.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3679, allocations: 0 / 450.5 MB, free: 7.98 MB / 414.1 MB Notification: Performance of Templates: time 0.2127/0.5805, allocations: 32.66 MB / 483.2 MB, free: 107.2 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.5368764490121976]