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.001064/0.001064, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001018/0.001018, allocations: 191 kB / 18.63 MB, free: 4.375 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 51.67 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09479, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01468/0.1095, allocations: 14.7 MB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1798/0.2894, allocations: 20.67 MB / 386.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.2917, allocations: 90.62 kB / 387 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003317/0.295, allocations: 1.234 MB / 388.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008359/0.3034, allocations: 2.305 MB / 390.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004944/0.3084, allocations: 1.436 MB / 391.9 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009046/0.3174, allocations: 6.482 MB / 398.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006577/0.3181, allocations: 463.1 kB / 398.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.3197, allocations: 1.08 MB / 400 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.3208, allocations: 1.112 MB / 401.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.321, allocations: 76.22 kB / 401.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.3257, allocations: 1.474 MB / 402.6 MB, free: 304 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000258/0.326, allocations: 332.2 kB / 402.9 MB, free: 32 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.3273, allocations: 1.369 MB / 404.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004123/0.3314, allocations: 3.769 MB / 408.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3314, allocations: 0 / 408.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3315, allocations: 0.6562 kB / 408.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.3315, allocations: 0 / 408.1 MB, free: 11.7 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.004902/0.3364, allocations: 3.678 MB / 411.8 MB, free: 7.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3364, allocations: 11.89 kB / 411.8 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004112/0.3369, allocations: 395.2 kB / 412.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003183/0.3401, allocations: 2.41 MB / 414.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.3401, allocations: 44.92 kB / 414.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3402, allocations: 59.88 kB / 414.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3415, allocations: 0.7304 MB / 415.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3415, allocations: 0 / 415.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.3416, allocations: 16 kB / 415.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.3416, allocations: 23.98 kB / 415.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.3431, allocations: 0.8163 MB / 416.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004602/0.3477, allocations: 3.047 MB / 419.3 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.3488, allocations: 0.5713 MB / 419.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009475/0.3498, allocations: 0.6554 MB / 420.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02883/0.3786, allocations: 30.11 MB / 450.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007187/0.3794, allocations: 374.2 kB / 451 MB, free: 12.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.375e-06/0.3794, allocations: 4 kB / 451 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002078/0.3815, allocations: 1.085 MB / 452.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.3815, allocations: 59.39 kB / 452.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.3848, allocations: 2.931 MB / 455.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.3849, allocations: 41.69 kB / 455.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.386, allocations: 1.485 MB / 456.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.3862, allocations: 165.7 kB / 456.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.3865, allocations: 230.1 kB / 457 MB, free: 6.348 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3866, allocations: 342 kB / 457.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005267/0.3871, allocations: 245.8 kB / 457.6 MB, free: 5.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007222/0.3879, allocations: 0.5942 MB / 458.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.3891, allocations: 0.9013 MB / 459.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.3892, allocations: 4 kB / 459.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001872/0.391, allocations: 1.226 MB / 460.3 MB, free: 2.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.3911, allocations: 12 kB / 460.3 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-05/0.3912, allocations: 81.69 kB / 460.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.3912, allocations: 16 kB / 460.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.3919, allocations: 203.6 kB / 460.6 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.3919, allocations: 23.92 kB / 460.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008798/0.3928, allocations: 119 kB / 460.7 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.3929, allocations: 69.62 kB / 460.8 MB, free: 2.176 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.0006351/0.3936, allocations: 434.2 kB / 461.2 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.3939, allocations: 383.3 kB / 461.6 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002373/0.3963, allocations: 1.201 MB / 462.8 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3963, allocations: 4 kB / 462.8 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3963, allocations: 4 kB / 462.8 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3963, allocations: 3.984 kB / 462.8 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.3995, allocations: 2.089 MB / 464.9 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.316e-05/0.3996, allocations: 68 kB / 465 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.4, allocations: 91.98 kB / 465.1 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.4001, allocations: 7.938 kB / 465.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-05/0.4001, allocations: 35.98 kB / 465.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.4001, allocations: 7.938 kB / 465.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4001, allocations: 0 / 465.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.4022, allocations: 1.29 MB / 466.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008277/0.403, allocations: 484.3 kB / 466.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/0.4033, allocations: 8 kB / 466.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000629/0.4039, allocations: 31.95 kB / 466.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4041, allocations: 55.95 kB / 467 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.82e-05/0.4042, allocations: 39.98 kB / 467 MB, free: 11.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002203/0.4064, allocations: 1.907 MB / 468.9 MB, free: 9.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4064, allocations: 3.938 kB / 468.9 MB, free: 9.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001211/0.4076, allocations: 0.5894 MB / 469.5 MB, free: 9.32 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.001004/0.4086, allocations: 0.7774 MB / 470.3 MB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.4101, allocations: 0.8019 MB / 471.1 MB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4101, allocations: 320 / 471.1 MB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007085/0.4108, allocations: 447 kB / 471.5 MB, free: 7.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.4129, allocations: 0.6102 MB / 472.1 MB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.4183, allocations: 4.293 MB / 476.4 MB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.4194, allocations: 1.661 MB / 478.1 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008671/0.4202, allocations: 357.1 kB / 478.4 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.4205, allocations: 147.4 kB / 478.6 MB, free: 120 kB / 382.1 MB Notification: Performance of SimCode: time 1.783e-06/0.4205, allocations: 0 / 478.6 MB, free: 120 kB / 382.1 MB Notification: Performance of Templates: time 0.05328/0.4738, allocations: 31.11 MB / 0.4977 GB, free: 1.332 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 -s cvode -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