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: 107 kB / 21.18 MB, free: 0.6484 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.002288/0.002288, allocations: 213.3 kB / 24.48 MB, free: 3.941 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.462/1.462, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.00156/0.00156, allocations: 51.91 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2177, allocations: 53.36 MB / 432.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0143/0.232, allocations: 12.4 MB / 444.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03071/0.2627, allocations: 17.89 MB / 462.6 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002174/0.2648, allocations: 138.6 kB / 462.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004092/0.2689, allocations: 1.135 MB / 463.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009142/0.2781, allocations: 2.359 MB / 466.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0058/0.2839, allocations: 1.414 MB / 467.7 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01435/0.2982, allocations: 6.599 MB / 474.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007292/0.2989, allocations: 277.7 kB / 474.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.301, allocations: 1.159 MB / 475.7 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.3025, allocations: 1.11 MB / 476.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001948/0.3027, allocations: 76 kB / 476.9 MB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003665/0.3064, allocations: 1.241 MB / 478.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.3067, allocations: 321.7 kB / 478.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.3077, allocations: 1.009 MB / 479.4 MB, free: 7.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004444/0.3121, allocations: 3.83 MB / 483.3 MB, free: 3.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3121, allocations: 0 / 483.3 MB, free: 3.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3122, allocations: 0 / 483.3 MB, free: 3.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.569e-05/0.3122, allocations: 0 / 483.3 MB, free: 3.582 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.005637/0.3178, allocations: 3.726 MB / 487 MB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3179, allocations: 12.03 kB / 487 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000469/0.3183, allocations: 417.4 kB / 487.4 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.3221, allocations: 2.303 MB / 489.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/0.3222, allocations: 37 kB / 489.7 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.3223, allocations: 48 kB / 489.8 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.3238, allocations: 0.7343 MB / 490.5 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3238, allocations: 3.938 kB / 490.5 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-05/0.3239, allocations: 20 kB / 490.6 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.3239, allocations: 23.98 kB / 490.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.3256, allocations: 0.8124 MB / 491.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005364/0.331, allocations: 2.766 MB / 494.2 MB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3322, allocations: 0.5086 MB / 494.7 MB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.3332, allocations: 0.5614 MB / 495.2 MB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0269/0.3601, allocations: 13.72 MB / 0.497 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008517/0.361, allocations: 361.7 kB / 0.4974 GB, free: 8.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.361, allocations: 0 / 0.4974 GB, free: 8.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002374/0.3634, allocations: 1.107 MB / 0.4984 GB, free: 7.797 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.3634, allocations: 63.34 kB / 0.4985 GB, free: 7.723 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.3671, allocations: 2.954 MB / 0.5014 GB, free: 4.758 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.3671, allocations: 37.7 kB / 0.5014 GB, free: 4.715 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.3685, allocations: 1.506 MB / 0.5029 GB, free: 3.199 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.3687, allocations: 170.6 kB / 0.5031 GB, free: 3.031 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.369, allocations: 230.3 kB / 0.5033 GB, free: 2.801 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3692, allocations: 341.9 kB / 0.5036 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006039/0.3698, allocations: 241.8 kB / 0.5038 GB, free: 2.223 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008846/0.3707, allocations: 0.5979 MB / 0.5044 GB, free: 1.449 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.3722, allocations: 0.8974 MB / 0.5053 GB, free: 388 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3722, allocations: 4 kB / 0.5053 GB, free: 384 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002135/0.3743, allocations: 1.243 MB / 0.5065 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.3744, allocations: 8 kB / 0.5065 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/0.3745, allocations: 80 kB / 0.5066 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.3745, allocations: 20 kB / 0.5066 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007478/0.3752, allocations: 203.6 kB / 0.5068 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.624e-05/0.3753, allocations: 23.92 kB / 0.5068 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008751/0.3761, allocations: 123.2 kB / 0.507 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3762, allocations: 64 kB / 0.507 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.0006345/0.3769, allocations: 437.4 kB / 0.5074 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003862/0.3773, allocations: 401.5 kB / 0.5078 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.3799, allocations: 1.19 MB / 0.509 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.3799, allocations: 4 kB / 0.509 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3799, allocations: 0 / 0.509 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3799, allocations: 0 / 0.509 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.3832, allocations: 1.95 MB / 0.5109 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.926e-05/0.3833, allocations: 71.98 kB / 0.511 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/0.3838, allocations: 87.92 kB / 0.511 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3838, allocations: 4 kB / 0.511 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.64e-05/0.3839, allocations: 39.98 kB / 0.5111 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3839, allocations: 4 kB / 0.5111 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3839, allocations: 0 / 0.5111 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.3862, allocations: 1.314 MB / 0.5124 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008447/0.3871, allocations: 423.2 kB / 0.5128 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003822/0.3875, allocations: 11.98 kB / 0.5128 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.3886, allocations: 23.97 kB / 0.5128 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.3889, allocations: 63.92 kB / 0.5129 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.389, allocations: 39.94 kB / 0.5129 GB, free: 8.488 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003911/0.3929, allocations: 1.911 MB / 0.5148 GB, free: 6.578 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3929, allocations: 4.062 kB / 0.5148 GB, free: 6.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002216/0.3951, allocations: 0.5813 MB / 0.5153 GB, free: 5.992 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.001745/0.3969, allocations: 0.7807 MB / 0.5161 GB, free: 5.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002482/0.3993, allocations: 0.7678 MB / 0.5169 GB, free: 4.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3993, allocations: 4.062 kB / 0.5169 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.4005, allocations: 426.9 kB / 0.5173 GB, free: 3.965 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003682/0.4042, allocations: 0.6063 MB / 0.5179 GB, free: 3.355 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009035/0.4132, allocations: 4.391 MB / 0.5221 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/0.4148, allocations: 1.109 MB / 0.5232 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001582/0.4164, allocations: 361.1 kB / 0.5236 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.4167, allocations: 155.4 kB / 0.5237 GB, free: 13.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4167, allocations: 0 / 0.5237 GB, free: 13.26 MB / 446.1 MB Notification: Performance of Templates: time 0.2584/0.6751, allocations: 36.77 MB / 0.5596 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/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.81013614499534]