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.0007914/0.0007914, allocations: 93.31 kB / 17.31 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.0008421/0.0008421, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.134/1.134, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002048/0.0002048, allocations: 4.688 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06958/0.0698, allocations: 50.4 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01009/0.07991, allocations: 14.02 MB / 366.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1494/0.2293, allocations: 20.59 MB / 387.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.2305, allocations: 31.16 kB / 387.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.2327, allocations: 1.096 MB / 388.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005387/0.2381, allocations: 1.925 MB / 390.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003479/0.2416, allocations: 1.197 MB / 391.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006827/0.2484, allocations: 6.363 MB / 397.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004637/0.2489, allocations: 425.7 kB / 398.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.25, allocations: 1.039 MB / 399.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007755/0.2508, allocations: 1.07 MB / 400.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.2509, allocations: 42.12 kB / 400.3 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003018/0.2539, allocations: 1.468 MB / 401.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.2541, allocations: 294.3 kB / 402 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006977/0.2548, allocations: 1.36 MB / 403.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2563, allocations: 2.691 MB / 406.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2563, allocations: 0 / 406.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2563, allocations: 0 / 406.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.2564, allocations: 0 / 406.1 MB, free: 15.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.003564/0.2599, allocations: 3.222 MB / 409.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.26, allocations: 16.03 kB / 409.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003021/0.2603, allocations: 391.2 kB / 409.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.2629, allocations: 2.438 MB / 412.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.263, allocations: 37 kB / 412.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.2631, allocations: 55.84 kB / 412.2 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2642, allocations: 0.7539 MB / 413 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2643, allocations: 0 / 413 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.2643, allocations: 23.98 kB / 413 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.2644, allocations: 20 kB / 413 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.2657, allocations: 0.867 MB / 413.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/0.2697, allocations: 3.079 MB / 417 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.2707, allocations: 0.6142 MB / 417.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008784/0.2716, allocations: 0.6682 MB / 418.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02302/0.2947, allocations: 30.15 MB / 448.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006602/0.2953, allocations: 389.3 kB / 448.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.884e-06/0.2954, allocations: 0 / 448.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001968/0.2973, allocations: 1.148 MB / 449.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.2974, allocations: 67.33 kB / 450 MB, free: 15.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002774/0.3001, allocations: 2.931 MB / 452.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.3002, allocations: 33.7 kB / 453 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.3012, allocations: 1.489 MB / 454.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3014, allocations: 165.7 kB / 454.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.104e-05/0.3015, allocations: 73.67 kB / 454.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.3016, allocations: 341.9 kB / 455 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000536/0.3021, allocations: 261.9 kB / 455.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000709/0.3028, allocations: 0.6216 MB / 455.9 MB, free: 9.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.3041, allocations: 0.9364 MB / 456.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3042, allocations: 4 kB / 456.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001789/0.3059, allocations: 1.276 MB / 458.1 MB, free: 7.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.306, allocations: 8 kB / 458.1 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.151e-05/0.3061, allocations: 83.98 kB / 458.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3061, allocations: 20 kB / 458.2 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/0.3067, allocations: 219.8 kB / 458.4 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.3068, allocations: 19.94 kB / 458.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007682/0.3075, allocations: 123 kB / 458.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.165e-05/0.3076, allocations: 64 kB / 458.6 MB, free: 6.516 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.0005357/0.3082, allocations: 436.3 kB / 459.1 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002748/0.3085, allocations: 379.3 kB / 459.4 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002617/0.3111, allocations: 1.244 MB / 460.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3111, allocations: 4 kB / 460.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3111, allocations: 0 / 460.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3111, allocations: 3.984 kB / 460.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.3138, allocations: 2.135 MB / 462.8 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.952e-05/0.3139, allocations: 72 kB / 462.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/0.3143, allocations: 103.9 kB / 463 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.3144, allocations: 4 kB / 463 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.91e-05/0.3144, allocations: 35.98 kB / 463 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3144, allocations: 0 / 463 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3144, allocations: 7.984 kB / 463 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.3164, allocations: 1.355 MB / 464.4 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005073/0.3169, allocations: 480.2 kB / 464.9 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/0.3172, allocations: 8 kB / 464.9 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000616/0.3178, allocations: 44.02 kB / 464.9 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3179, allocations: 65.33 kB / 465 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/0.318, allocations: 44 kB / 465 MB, free: 15.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001933/0.3199, allocations: 1.903 MB / 466.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3199, allocations: 0 / 466.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009917/0.3209, allocations: 0.5816 MB / 467.5 MB, free: 13.5 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.0009134/0.3218, allocations: 0.781 MB / 468.3 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.3232, allocations: 0.8489 MB / 469.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3232, allocations: 0 / 469.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.3239, allocations: 467.2 kB / 469.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.3263, allocations: 0.5763 MB / 470.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005403/0.3317, allocations: 5.312 MB / 475.5 MB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009485/0.3327, allocations: 1.665 MB / 477.1 MB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.3329, allocations: 155.4 kB / 477.3 MB, free: 3.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3329, allocations: 0 / 477.3 MB, free: 3.57 MB / 382.1 MB Notification: Performance of Templates: time 0.04253/0.3755, allocations: 37.01 MB / 0.5022 GB, free: 14.72 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