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.001145/0.001145, allocations: 101 kB / 17.59 MB, free: 5.422 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.001189/0.001189, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.407/1.407, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 43.28 kB / 301.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 49.45 MB / 350.7 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01587/0.128, allocations: 14.69 MB / 365.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1819/0.31, allocations: 20.69 MB / 386.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.3126, allocations: 34.38 kB / 386.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003952/0.3166, allocations: 1.222 MB / 387.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008494/0.3251, allocations: 2.296 MB / 389.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005379/0.3305, allocations: 1.443 MB / 391.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009337/0.3399, allocations: 6.462 MB / 397.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007285/0.3406, allocations: 454.7 kB / 398 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001691/0.3423, allocations: 1.067 MB / 399.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3434, allocations: 1.111 MB / 400.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.3436, allocations: 76.44 kB / 400.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004399/0.3481, allocations: 1.482 MB / 401.7 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002974/0.3484, allocations: 328.3 kB / 402.1 MB, free: 416 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.3498, allocations: 1.374 MB / 403.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004558/0.3543, allocations: 3.736 MB / 407.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3544, allocations: 0 / 407.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3544, allocations: 4 kB / 407.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.284e-05/0.3544, allocations: 0 / 407.2 MB, free: 12.27 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.004476/0.3589, allocations: 3.685 MB / 410.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3589, allocations: 8.031 kB / 410.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003732/0.3593, allocations: 399.2 kB / 411.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.3622, allocations: 2.445 MB / 413.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.3622, allocations: 37 kB / 413.7 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.3624, allocations: 51.91 kB / 413.8 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.3636, allocations: 0.7352 MB / 414.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3636, allocations: 3.984 kB / 414.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.3637, allocations: 20 kB / 414.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.3637, allocations: 19.98 kB / 414.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.3652, allocations: 0.8163 MB / 415.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004525/0.3697, allocations: 3.051 MB / 418.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3709, allocations: 0.5751 MB / 419 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009435/0.3718, allocations: 0.6447 MB / 419.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02604/0.3979, allocations: 30.12 MB / 449.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000726/0.3986, allocations: 373.2 kB / 450.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3987, allocations: 0 / 450.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002225/0.4009, allocations: 1.081 MB / 451.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.4009, allocations: 63.41 kB / 451.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.404, allocations: 2.935 MB / 454.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/0.4041, allocations: 33.7 kB / 454.3 MB, free: 8.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.4053, allocations: 1.485 MB / 455.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.4054, allocations: 173.7 kB / 455.9 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/0.4057, allocations: 226.1 kB / 456.1 MB, free: 6.883 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4058, allocations: 337.9 kB / 456.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005695/0.4064, allocations: 241.9 kB / 456.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000763/0.4072, allocations: 0.6085 MB / 457.3 MB, free: 5.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.4085, allocations: 0.8857 MB / 458.2 MB, free: 4.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.4085, allocations: 4 kB / 458.2 MB, free: 4.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002101/0.4106, allocations: 1.226 MB / 459.4 MB, free: 3.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.4107, allocations: 15.94 kB / 459.4 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.4108, allocations: 88.11 kB / 459.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.4108, allocations: 16 kB / 459.5 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.4115, allocations: 203.6 kB / 459.7 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.4116, allocations: 27.81 kB / 459.8 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.4132, allocations: 111 kB / 459.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.4133, allocations: 64 kB / 459.9 MB, free: 2.719 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.00108/0.4144, allocations: 434.3 kB / 460.4 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007501/0.4152, allocations: 383.3 kB / 460.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.4185, allocations: 1.199 MB / 461.9 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.4185, allocations: 4 kB / 461.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4186, allocations: 4 kB / 461.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4186, allocations: 3.984 kB / 461.9 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.4216, allocations: 2.093 MB / 464 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-05/0.4217, allocations: 68 kB / 464.1 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.4222, allocations: 95.84 kB / 464.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.176e-06/0.4222, allocations: 4.062 kB / 464.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/0.4223, allocations: 32 kB / 464.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.4223, allocations: 4 kB / 464.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4223, allocations: 1.125 kB / 464.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.4245, allocations: 1.301 MB / 465.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006851/0.4252, allocations: 480.2 kB / 466 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002877/0.4255, allocations: 15.98 kB / 466 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006474/0.4261, allocations: 28.03 kB / 466.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.4263, allocations: 55.95 kB / 466.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.967e-05/0.4264, allocations: 47.92 kB / 466.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002322/0.4287, allocations: 1.899 MB / 468.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4287, allocations: 0 / 468.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001318/0.43, allocations: 0.5855 MB / 468.6 MB, free: 9.867 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.001031/0.4311, allocations: 0.7706 MB / 469.4 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.4328, allocations: 0.8329 MB / 470.2 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.4328, allocations: 4 kB / 470.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007476/0.4335, allocations: 451.1 kB / 470.7 MB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.4361, allocations: 0.6156 MB / 471.3 MB, free: 7.141 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006001/0.4421, allocations: 4.439 MB / 475.7 MB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.4433, allocations: 1.661 MB / 477.4 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.4437, allocations: 155.4 kB / 477.6 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4437, allocations: 0 / 477.6 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of Templates: time 0.05219/0.4959, allocations: 37.33 MB / 0.5028 GB, free: 11.64 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/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