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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 92.53 kB / 16.3 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009495/0.0009495, allocations: 184.5 kB / 17.2 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.0002301, allocations: 4 kB / 300.7 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.092, allocations: 50.41 MB / 351.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01108/0.1031, allocations: 11.79 MB / 362.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1751/0.2783, allocations: 17.81 MB / 380.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00205/0.2804, allocations: 29.69 kB / 380.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002969/0.2834, allocations: 0.9992 MB / 381.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006778/0.2902, allocations: 2.078 MB / 383.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.2948, allocations: 1.188 MB / 385 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.3049, allocations: 6.097 MB / 391.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006378/0.3055, allocations: 421.6 kB / 391.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.3071, allocations: 0.949 MB / 392.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.3081, allocations: 1.015 MB / 393.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3083, allocations: 43 kB / 393.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004304/0.3126, allocations: 1.438 MB / 395 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3129, allocations: 270.2 kB / 395.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005024/0.3134, allocations: 0.6211 MB / 395.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001988/0.3154, allocations: 2.593 MB / 398.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.3154, allocations: 0 / 398.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3154, allocations: 0 / 398.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.099e-05/0.3154, allocations: 0 / 398.5 MB, free: 3.613 MB / 302.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.004019/0.3194, allocations: 3.244 MB / 401.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.3195, allocations: 11.25 kB / 401.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.3198, allocations: 399.6 kB / 402.1 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002939/0.3227, allocations: 2.246 MB / 404.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.3228, allocations: 42.48 kB / 404.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.3229, allocations: 51.5 kB / 404.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3241, allocations: 0.7441 MB / 405.2 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3242, allocations: 2.062 kB / 405.2 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.878e-05/0.3242, allocations: 25.16 kB / 405.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.3243, allocations: 19.02 kB / 405.2 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3258, allocations: 0.8631 MB / 406.1 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.3305, allocations: 3.056 MB / 409.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3317, allocations: 0.6181 MB / 409.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02883/0.3606, allocations: 30.29 MB / 440.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007679/0.3614, allocations: 389.4 kB / 440.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.3614, allocations: 4 kB / 440.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002362/0.3637, allocations: 1.451 MB / 441.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3638, allocations: 63.41 kB / 441.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.367, allocations: 2.904 MB / 444.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.135e-05/0.3671, allocations: 29.7 kB / 444.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.3682, allocations: 1.493 MB / 446.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.3684, allocations: 173.6 kB / 446.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.3684, allocations: 16 kB / 446.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3686, allocations: 337.9 kB / 446.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005755/0.3692, allocations: 257.9 kB / 447.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007873/0.37, allocations: 0.6215 MB / 447.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006655/0.3706, allocations: 340.5 kB / 448.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3707, allocations: 7.938 kB / 448.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002018/0.3727, allocations: 1.264 MB / 449.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3727, allocations: 8.938 kB / 449.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.3728, allocations: 79.94 kB / 449.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/0.3729, allocations: 20 kB / 449.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007205/0.3736, allocations: 211.7 kB / 449.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.3736, allocations: 31.86 kB / 449.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3746, allocations: 119 kB / 449.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3747, allocations: 64 kB / 449.9 MB, free: 13.7 MB / 366.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006358/0.3754, allocations: 432.8 kB / 450.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003347/0.3757, allocations: 379.4 kB / 450.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002951/0.3787, allocations: 1.26 MB / 451.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.3787, allocations: 8 kB / 452 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3787, allocations: 0 / 452 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3787, allocations: 3.5 kB / 452 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003219/0.3819, allocations: 2.124 MB / 454.1 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.129e-05/0.3821, allocations: 75.95 kB / 454.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.3825, allocations: 103.9 kB / 454.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3825, allocations: 4 kB / 454.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.3826, allocations: 31.98 kB / 454.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3826, allocations: 7.938 kB / 454.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3826, allocations: 4 kB / 454.3 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.3848, allocations: 1.408 MB / 455.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007239/0.3856, allocations: 472.2 kB / 456.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.3859, allocations: 11.98 kB / 456.2 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006617/0.3865, allocations: 44.03 kB / 456.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.3867, allocations: 59.89 kB / 456.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-05/0.3868, allocations: 39.98 kB / 456.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002269/0.389, allocations: 1.864 MB / 458.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.389, allocations: 0 / 458.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00131/0.3904, allocations: 0.5933 MB / 458.8 MB, free: 4.641 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009321/0.3913, allocations: 0.7305 MB / 459.5 MB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.3928, allocations: 0.8569 MB / 460.4 MB, free: 3.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3928, allocations: 0 / 460.4 MB, free: 3.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007224/0.3936, allocations: 471.2 kB / 460.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.3958, allocations: 0.5779 MB / 461.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00592/0.4017, allocations: 4.896 MB / 466.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.4028, allocations: 1.719 MB / 468 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001158/0.404, allocations: 361.1 kB / 468.4 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.4042, allocations: 147.4 kB / 468.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4042, allocations: 0 / 468.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of Templates: time 0.04597/0.4502, allocations: 28.43 MB / 496.9 MB, free: 14.61 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches