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.001082/0.001082, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001078/0.001078, allocations: 188.5 kB / 18.67 MB, free: 4.438 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2898, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01323/0.3031, allocations: 14.7 MB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02412/0.3273, allocations: 20.69 MB / 436.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003106/0.3304, allocations: 91.25 kB / 436.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003631/0.3341, allocations: 1.222 MB / 438.1 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008489/0.3426, allocations: 2.297 MB / 440.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005271/0.3479, allocations: 1.443 MB / 441.8 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.3586, allocations: 6.485 MB / 448.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009779/0.3596, allocations: 453.1 kB / 448.8 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.3616, allocations: 1.112 MB / 449.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.363, allocations: 1.114 MB / 451 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00023/0.3633, allocations: 72 kB / 451.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004961/0.3682, allocations: 1.479 MB / 452.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006326/0.3689, allocations: 325.6 kB / 452.9 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002102/0.371, allocations: 1.37 MB / 454.2 MB, free: 3.805 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007364/0.3784, allocations: 3.763 MB / 458 MB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3784, allocations: 0 / 458 MB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3784, allocations: 0 / 458 MB, free: 28 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.414e-05/0.3785, allocations: 3.938 kB / 458 MB, free: 24 kB / 366.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.00606/0.3846, allocations: 3.674 MB / 461.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3847, allocations: 11.97 kB / 461.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004519/0.3851, allocations: 395.2 kB / 462.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003585/0.3887, allocations: 2.418 MB / 464.5 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.3888, allocations: 37 kB / 464.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.3889, allocations: 51.91 kB / 464.6 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.3903, allocations: 0.742 MB / 465.3 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3903, allocations: 0 / 465.3 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.205e-05/0.3904, allocations: 20 kB / 465.3 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.3904, allocations: 19.98 kB / 465.3 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3919, allocations: 0.8124 MB / 466.2 MB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005188/0.3971, allocations: 3.051 MB / 469.2 MB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.3983, allocations: 0.5751 MB / 469.8 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009326/0.3992, allocations: 0.6477 MB / 470.4 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03038/0.4296, allocations: 30.12 MB / 0.4888 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007686/0.4304, allocations: 365.6 kB / 0.4892 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.876e-06/0.4304, allocations: 4 kB / 0.4892 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002335/0.4328, allocations: 1.089 MB / 0.4902 GB, free: 15.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.4328, allocations: 55.41 kB / 0.4903 GB, free: 15.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.4363, allocations: 2.939 MB / 0.4932 GB, free: 12.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.4363, allocations: 33.7 kB / 0.4932 GB, free: 12.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.4376, allocations: 1.486 MB / 0.4946 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.4378, allocations: 165.6 kB / 0.4948 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002942/0.4381, allocations: 230.1 kB / 0.495 GB, free: 10.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4382, allocations: 341.9 kB / 0.4953 GB, free: 10.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005624/0.4388, allocations: 241.9 kB / 0.4956 GB, free: 10.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007959/0.4396, allocations: 0.602 MB / 0.4962 GB, free: 9.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.441, allocations: 0.8935 MB / 0.497 GB, free: 8.254 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.441, allocations: 7.938 kB / 0.497 GB, free: 8.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002182/0.4432, allocations: 1.226 MB / 0.4982 GB, free: 7.016 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.4432, allocations: 12 kB / 0.4983 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.4434, allocations: 80 kB / 0.4983 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.323e-05/0.4434, allocations: 16 kB / 0.4983 GB, free: 6.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007089/0.4441, allocations: 204.1 kB / 0.4985 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.424e-05/0.4441, allocations: 23.92 kB / 0.4986 GB, free: 6.688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.4453, allocations: 122.9 kB / 0.4987 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.4454, allocations: 64 kB / 0.4987 GB, free: 6.504 MB / 430.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.0008146/0.4462, allocations: 437.9 kB / 0.4992 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004135/0.4467, allocations: 379.4 kB / 0.4995 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.4492, allocations: 1.197 MB / 0.5007 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.4492, allocations: 7.984 kB / 0.5007 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4492, allocations: 0 / 0.5007 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4492, allocations: 0 / 0.5007 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.4526, allocations: 2.1 MB / 0.5027 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.531e-05/0.4527, allocations: 72.06 kB / 0.5028 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004907/0.4532, allocations: 95.84 kB / 0.5029 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.4532, allocations: 4 kB / 0.5029 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.4533, allocations: 32 kB / 0.5029 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.4533, allocations: 0 / 0.5029 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4533, allocations: 4 kB / 0.5029 GB, free: 2.098 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.4555, allocations: 1.301 MB / 0.5042 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008465/0.4563, allocations: 468.3 kB / 0.5047 GB, free: 292 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/0.4566, allocations: 15.98 kB / 0.5047 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000672/0.4573, allocations: 31.91 kB / 0.5047 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4574, allocations: 63.88 kB / 0.5048 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/0.4575, allocations: 36 kB / 0.5048 GB, free: 144 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002391/0.4599, allocations: 1.915 MB / 0.5067 GB, free: 14.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4599, allocations: 0 / 0.5067 GB, free: 14.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001406/0.4614, allocations: 0.5777 MB / 0.5072 GB, free: 13.64 MB / 446.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.001188/0.4626, allocations: 0.7687 MB / 0.508 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.4643, allocations: 0.8213 MB / 0.5088 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4643, allocations: 0 / 0.5088 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007748/0.4651, allocations: 443 kB / 0.5092 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.4674, allocations: 0.6039 MB / 0.5098 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006351/0.4738, allocations: 4.364 MB / 0.5141 GB, free: 6.551 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.4749, allocations: 1.661 MB / 0.5157 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.4752, allocations: 159.4 kB / 0.5158 GB, free: 4.707 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4752, allocations: 0 / 0.5158 GB, free: 4.707 MB / 446.1 MB Notification: Performance of Templates: time 0.2843/0.7595, allocations: 38.05 MB / 0.553 GB, free: 119.8 MB / 462.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