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.001193/0.001193, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.001181/0.001181, allocations: 197.3 kB / 18.21 MB, free: 5.289 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: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009867/0.0009868, allocations: 41.58 kB / 300.8 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1027, allocations: 49.45 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0131/0.1159, allocations: 14.59 MB / 364.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1708/0.2867, allocations: 20.5 MB / 385.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.2886, allocations: 31.28 kB / 385.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.2919, allocations: 1.084 MB / 386.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007421/0.2993, allocations: 1.968 MB / 388.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004969/0.3043, allocations: 1.262 MB / 389.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.3144, allocations: 6.545 MB / 396.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008018/0.3152, allocations: 458.8 kB / 396.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.3172, allocations: 1.088 MB / 397.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.3185, allocations: 1.11 MB / 398.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000181/0.3187, allocations: 77 kB / 398.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.3227, allocations: 1.485 MB / 400.4 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.323, allocations: 326.2 kB / 400.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.3243, allocations: 1.384 MB / 402.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002814/0.3272, allocations: 2.784 MB / 404.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3272, allocations: 4.938 kB / 404.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3272, allocations: 0 / 404.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.602e-05/0.3273, allocations: 0 / 404.9 MB, free: 14.48 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.005022/0.3323, allocations: 3.683 MB / 408.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3323, allocations: 8.031 kB / 408.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004385/0.3328, allocations: 395.2 kB / 409 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003269/0.3361, allocations: 2.433 MB / 411.4 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.3361, allocations: 37.88 kB / 411.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3362, allocations: 51.91 kB / 411.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.3376, allocations: 0.7459 MB / 412.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3376, allocations: 7.875 kB / 412.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.3377, allocations: 16 kB / 412.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.255e-05/0.3377, allocations: 27.98 kB / 412.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.3392, allocations: 0.8124 MB / 413.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.3441, allocations: 3.055 MB / 416.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.3452, allocations: 0.5674 MB / 416.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009198/0.3462, allocations: 0.6506 MB / 417.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02755/0.3737, allocations: 30.12 MB / 447.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007487/0.3745, allocations: 369.4 kB / 447.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.3745, allocations: 0 / 447.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002206/0.3767, allocations: 1.093 MB / 449 MB, free: 14.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3768, allocations: 59.41 kB / 449 MB, free: 13.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/0.3803, allocations: 2.935 MB / 451.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.167e-05/0.3803, allocations: 33.7 kB / 452 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.3815, allocations: 1.486 MB / 453.5 MB, free: 9.488 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3817, allocations: 169.7 kB / 453.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.382, allocations: 230.1 kB / 453.9 MB, free: 9.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3821, allocations: 337.9 kB / 454.2 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005624/0.3827, allocations: 237.9 kB / 454.4 MB, free: 8.523 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007821/0.3835, allocations: 0.602 MB / 455 MB, free: 7.746 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.3849, allocations: 0.8974 MB / 455.9 MB, free: 6.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.3849, allocations: 4 kB / 455.9 MB, free: 6.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002064/0.3869, allocations: 1.225 MB / 457.1 MB, free: 5.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.387, allocations: 15.94 kB / 457.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.3871, allocations: 83.98 kB / 457.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.3871, allocations: 16.78 kB / 457.3 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.3878, allocations: 207.6 kB / 457.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.216e-05/0.3878, allocations: 23.94 kB / 457.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.3889, allocations: 115 kB / 457.6 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.389, allocations: 64 kB / 457.7 MB, free: 4.926 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.0007616/0.3898, allocations: 433.5 kB / 458.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004107/0.3902, allocations: 383.3 kB / 458.5 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002753/0.3929, allocations: 1.2 MB / 459.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.393, allocations: 7.984 kB / 459.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.393, allocations: 0 / 459.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.393, allocations: 7.984 kB / 459.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003311/0.3963, allocations: 2.096 MB / 461.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.651e-05/0.3964, allocations: 68.94 kB / 461.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.3969, allocations: 91.86 kB / 461.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3969, allocations: 0 / 461.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-05/0.3969, allocations: 35.98 kB / 462 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3969, allocations: 4 kB / 462 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3969, allocations: 0 / 462 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.3992, allocations: 1.301 MB / 463.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.3999, allocations: 480.2 kB / 463.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.4002, allocations: 8 kB / 463.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.4008, allocations: 31.95 kB / 463.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.401, allocations: 67.95 kB / 463.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.341e-05/0.4011, allocations: 39.98 kB / 463.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.4035, allocations: 1.899 MB / 465.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4035, allocations: 0 / 465.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00134/0.4048, allocations: 0.5816 MB / 466.4 MB, free: 12.08 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.001058/0.4059, allocations: 0.7772 MB / 467.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.4076, allocations: 0.8292 MB / 468 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4076, allocations: 0 / 468 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007125/0.4083, allocations: 451.2 kB / 468.4 MB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/0.4106, allocations: 0.6251 MB / 469 MB, free: 9.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006842/0.4175, allocations: 5.216 MB / 474.3 MB, free: 4.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/0.4187, allocations: 1.665 MB / 475.9 MB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/0.419, allocations: 159.4 kB / 476.1 MB, free: 2.238 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.419, allocations: 0 / 476.1 MB, free: 2.238 MB / 382.1 MB Notification: Performance of Templates: time 0.05194/0.471, allocations: 37.33 MB / 0.5014 GB, free: 13.06 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