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.0009809/0.0009859, allocations: 92.05 kB / 16.65 MB, free: 6.535 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.00111/0.00111, allocations: 171.8 kB / 17.56 MB, free: 6.184 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.338/1.338, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003266, allocations: 7.938 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.104, allocations: 50.41 MB / 351.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01188/0.116, allocations: 14.03 MB / 365.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1984/0.3144, allocations: 20.58 MB / 386.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.3166, allocations: 27.34 kB / 386.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003572/0.3202, allocations: 1.102 MB / 387.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3306, allocations: 1.916 MB / 389.5 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006728/0.3374, allocations: 1.206 MB / 390.7 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3486, allocations: 6.35 MB / 397 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008309/0.3495, allocations: 436.1 kB / 397.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.3517, allocations: 1.038 MB / 398.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001889/0.3536, allocations: 1.073 MB / 399.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.3539, allocations: 42.53 kB / 399.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004893/0.3588, allocations: 1.463 MB / 401.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.3592, allocations: 293 kB / 401.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001849/0.361, allocations: 1.366 MB / 402.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006629/0.3677, allocations: 3.608 MB / 406.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3677, allocations: 0 / 406.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3677, allocations: 0 / 406.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.122e-05/0.3678, allocations: 0 / 406.3 MB, free: 14.96 MB / 318.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.004838/0.3726, allocations: 3.214 MB / 409.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3727, allocations: 16.02 kB / 409.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004041/0.3731, allocations: 391.2 kB / 409.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.3765, allocations: 2.441 MB / 412.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.3765, allocations: 37.94 kB / 412.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.3767, allocations: 59.83 kB / 412.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3781, allocations: 0.75 MB / 413.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.3781, allocations: 0 / 413.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.095e-05/0.3782, allocations: 20 kB / 413.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.3782, allocations: 19.98 kB / 413.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.3798, allocations: 0.8631 MB / 414.1 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.3849, allocations: 3.083 MB / 417.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3861, allocations: 0.6142 MB / 417.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.3872, allocations: 0.661 MB / 418.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02921/0.4164, allocations: 30.15 MB / 448.6 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007928/0.4172, allocations: 405.2 kB / 449 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.856e-06/0.4173, allocations: 0 / 449 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002365/0.4196, allocations: 1.152 MB / 450.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.4197, allocations: 63.34 kB / 450.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/0.4232, allocations: 2.931 MB / 453.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.4233, allocations: 37.7 kB / 453.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.4245, allocations: 1.489 MB / 454.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.4247, allocations: 161.7 kB / 454.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.4248, allocations: 73.62 kB / 454.9 MB, free: 9.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4249, allocations: 337.9 kB / 455.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006207/0.4255, allocations: 265.8 kB / 455.5 MB, free: 9.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008285/0.4264, allocations: 0.6216 MB / 456.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.4279, allocations: 0.9403 MB / 457.1 MB, free: 7.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.4279, allocations: 4 kB / 457.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002276/0.4302, allocations: 1.272 MB / 458.4 MB, free: 6.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.4302, allocations: 12.97 kB / 458.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001015/0.4303, allocations: 80 kB / 458.4 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.4303, allocations: 20 kB / 458.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007924/0.4311, allocations: 211.6 kB / 458.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.55e-05/0.4312, allocations: 31.91 kB / 458.7 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.4323, allocations: 115.1 kB / 458.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.4324, allocations: 67.94 kB / 458.9 MB, free: 5.625 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 (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.0007859/0.4332, allocations: 437.5 kB / 459.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.4335, allocations: 383.3 kB / 459.7 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.4365, allocations: 1.248 MB / 460.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.4366, allocations: 4 kB / 460.9 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4366, allocations: 0 / 460.9 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4366, allocations: 4 kB / 460.9 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/0.4399, allocations: 2.135 MB / 463.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.761e-05/0.44, allocations: 71.98 kB / 463.1 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.4405, allocations: 103.9 kB / 463.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.4405, allocations: 4 kB / 463.3 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.4406, allocations: 28 kB / 463.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.4406, allocations: 4 kB / 463.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4406, allocations: 3.938 kB / 463.3 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.4431, allocations: 1.356 MB / 464.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008485/0.444, allocations: 476.2 kB / 465.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/0.4443, allocations: 16.06 kB / 465.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006849/0.445, allocations: 35.97 kB / 465.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.4451, allocations: 63.94 kB / 465.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.33e-05/0.4452, allocations: 36 kB / 465.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002484/0.4477, allocations: 1.907 MB / 467.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.4477, allocations: 0 / 467.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001495/0.4492, allocations: 0.5893 MB / 467.8 MB, free: 12.6 MB / 382.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.00107/0.4503, allocations: 0.7771 MB / 468.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.452, allocations: 0.845 MB / 469.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.452, allocations: 0 / 469.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.4528, allocations: 467.2 kB / 469.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/0.4557, allocations: 0.5724 MB / 470.4 MB, free: 9.883 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006745/0.4625, allocations: 5.263 MB / 475.7 MB, free: 4.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.4637, allocations: 1.661 MB / 477.3 MB, free: 2.895 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001414/0.4651, allocations: 361.1 kB / 477.7 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.4653, allocations: 147.4 kB / 477.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4653, allocations: 0 / 477.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of Templates: time 0.05404/0.5194, allocations: 30.03 MB / 0.496 GB, free: 4.629 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","/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) Reference file matches