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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.001445/0.001445, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001571/0.001571, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 51.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0828/0.08407, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01328/0.09737, allocations: 14.04 MB / 342.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0223/0.1197, allocations: 19.72 MB / 362.5 MB, free: 1.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002747/0.1225, allocations: 95.19 kB / 362.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003217/0.1258, allocations: 1.201 MB / 363.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007001/0.1328, allocations: 2.262 MB / 366 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003989/0.1368, allocations: 1.393 MB / 367.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00965/0.1465, allocations: 6.329 MB / 373.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007343/0.1473, allocations: 469.1 kB / 374.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.1485, allocations: 0.9873 MB / 375.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.1496, allocations: 1.083 MB / 376.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.1498, allocations: 72 kB / 376.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003585/0.1534, allocations: 1.167 MB / 377.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.1538, allocations: 325.6 kB / 377.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.1551, allocations: 1.389 MB / 379.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1631/0.3181, allocations: 3.785 MB / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.3182, allocations: 0.625 kB / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.113e-06/0.3182, allocations: 3.719 kB / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001421/0.3184, allocations: 0.5 kB / 383 MB, free: 22.86 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.007877/0.3263, allocations: 3.688 MB / 386.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3263, allocations: 10.78 kB / 386.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000589/0.3269, allocations: 397.6 kB / 387.1 MB, free: 20.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004065/0.331, allocations: 2.43 MB / 389.5 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.331, allocations: 38.36 kB / 389.6 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3312, allocations: 57.64 kB / 389.6 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.3326, allocations: 0.7339 MB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3326, allocations: 0 / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-05/0.3327, allocations: 26.52 kB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.3327, allocations: 16.72 kB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3342, allocations: 0.8205 MB / 391.2 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.3406, allocations: 3.057 MB / 394.3 MB, free: 19.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.3417, allocations: 0.5704 MB / 394.8 MB, free: 19.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008623/0.3426, allocations: 0.6449 MB / 395.5 MB, free: 19.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02661/0.3692, allocations: 30.19 MB / 425.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007924/0.3701, allocations: 365.4 kB / 426 MB, free: 8.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.788e-06/0.3701, allocations: 0 / 426 MB, free: 8.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002572/0.3727, allocations: 1.096 MB / 427.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.3727, allocations: 63.41 kB / 427.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/0.3767, allocations: 2.956 MB / 430.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.3769, allocations: 29.7 kB / 430.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.3783, allocations: 1.496 MB / 431.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.3785, allocations: 171.8 kB / 431.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/0.3789, allocations: 226.1 kB / 432.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.379, allocations: 345.8 kB / 432.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006094/0.3796, allocations: 241.9 kB / 432.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000933/0.3806, allocations: 0.6039 MB / 433.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.382, allocations: 0.891 MB / 434.1 MB, free: 276 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.3821, allocations: 8 kB / 434.1 MB, free: 268 kB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002539/0.3846, allocations: 1.231 MB / 435.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3846, allocations: 16.03 kB / 435.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.3848, allocations: 80 kB / 435.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.412e-05/0.3848, allocations: 16 kB / 435.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007036/0.3855, allocations: 201.3 kB / 435.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-05/0.3856, allocations: 31.11 kB / 435.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.3872, allocations: 113.2 kB / 435.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3873, allocations: 64 kB / 435.9 MB, free: 14.61 MB / 350.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.0009996/0.3883, allocations: 435 kB / 436.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006339/0.389, allocations: 395.1 kB / 436.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002764/0.3917, allocations: 1.192 MB / 437.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3918, allocations: 4 kB / 437.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3918, allocations: 0 / 437.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3918, allocations: 0 / 437.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003954/0.3958, allocations: 2.101 MB / 440 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.736e-05/0.3959, allocations: 70.81 kB / 440.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.3963, allocations: 96.58 kB / 440.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3964, allocations: 4 kB / 440.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.3964, allocations: 35.98 kB / 440.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.3964, allocations: 4 kB / 440.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3965, allocations: 0 / 440.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.3988, allocations: 1.304 MB / 441.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.3999, allocations: 480.1 kB / 442 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.4002, allocations: 8 kB / 442 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/0.4009, allocations: 35.95 kB / 442 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.4011, allocations: 55.95 kB / 442.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.4012, allocations: 45.95 kB / 442.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.4039, allocations: 1.924 MB / 444 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4039, allocations: 1.406 kB / 444 MB, free: 6.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00159/0.4055, allocations: 0.5855 MB / 444.6 MB, free: 5.793 MB / 350.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.001145/0.4066, allocations: 0.7826 MB / 445.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.4083, allocations: 0.8197 MB / 446.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4083, allocations: 0 / 446.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.409, allocations: 453.3 kB / 446.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.4109, allocations: 0.5172 MB / 447.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006029/0.417, allocations: 4.303 MB / 451.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.4181, allocations: 1.677 MB / 453.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.4192, allocations: 357.3 kB / 453.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.4195, allocations: 157.1 kB / 453.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4195, allocations: 0 / 453.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of Templates: time 0.05413/0.4736, allocations: 31.27 MB / 484.9 MB, free: 13.71 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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 gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) 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) Reference file matches