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.001184/0.001184, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001195/0.001196, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2561, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01273/0.2688, allocations: 14.7 MB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02671/0.2956, allocations: 20.68 MB / 436.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003638/0.2993, allocations: 95.25 kB / 436.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004609/0.304, allocations: 1.222 MB / 438.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.3141, allocations: 2.301 MB / 440.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007296/0.3215, allocations: 1.439 MB / 441.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01132/0.3328, allocations: 6.489 MB / 448.3 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.334, allocations: 453.1 kB / 448.8 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.3359, allocations: 1.112 MB / 449.9 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001931/0.3379, allocations: 1.11 MB / 451 MB, free: 7.066 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004685/0.3384, allocations: 76 kB / 451.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005249/0.3436, allocations: 1.475 MB / 452.5 MB, free: 5.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004676/0.3441, allocations: 333.6 kB / 452.9 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.3459, allocations: 1.37 MB / 454.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005667/0.3516, allocations: 3.759 MB / 458 MB, free: 36 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.3516, allocations: 3.984 kB / 458 MB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3517, allocations: 0 / 458 MB, free: 32 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.172e-05/0.3517, allocations: 0 / 458 MB, free: 32 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.005523/0.3572, allocations: 3.68 MB / 461.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3573, allocations: 8.031 kB / 461.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004255/0.3577, allocations: 391.2 kB / 462.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003237/0.361, allocations: 2.422 MB / 464.5 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.361, allocations: 37 kB / 464.5 MB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3612, allocations: 51.91 kB / 464.6 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.3626, allocations: 0.7342 MB / 465.3 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3626, allocations: 0 / 465.3 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.3627, allocations: 20 kB / 465.3 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.3628, allocations: 23.98 kB / 465.3 MB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.3643, allocations: 0.8202 MB / 466.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005199/0.3695, allocations: 3.047 MB / 469.2 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.3708, allocations: 0.5829 MB / 469.8 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.3718, allocations: 0.6399 MB / 470.4 MB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/0.4008, allocations: 30.12 MB / 0.4888 GB, free: 1.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007486/0.4016, allocations: 361.7 kB / 0.4892 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.494e-06/0.4016, allocations: 0 / 0.4892 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002236/0.4038, allocations: 1.093 MB / 0.4902 GB, free: 15.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.4039, allocations: 59.41 kB / 0.4903 GB, free: 15.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003336/0.4072, allocations: 2.939 MB / 0.4932 GB, free: 12.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/0.4073, allocations: 29.7 kB / 0.4932 GB, free: 12.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.4084, allocations: 1.486 MB / 0.4946 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.4086, allocations: 173.6 kB / 0.4948 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.4089, allocations: 226.2 kB / 0.495 GB, free: 10.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.409, allocations: 337.9 kB / 0.4953 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005773/0.4096, allocations: 237.9 kB / 0.4956 GB, free: 10.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/0.4104, allocations: 0.6098 MB / 0.4962 GB, free: 9.324 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.4119, allocations: 0.8857 MB / 0.497 GB, free: 8.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.4119, allocations: 7.938 kB / 0.497 GB, free: 8.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002217/0.4141, allocations: 1.226 MB / 0.4982 GB, free: 7.027 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.4141, allocations: 8 kB / 0.4982 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.4143, allocations: 87.98 kB / 0.4983 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.768e-05/0.4143, allocations: 16 kB / 0.4983 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007327/0.415, allocations: 211.9 kB / 0.4985 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.7e-05/0.4151, allocations: 23.94 kB / 0.4986 GB, free: 6.688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4161, allocations: 118.9 kB / 0.4987 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.4162, allocations: 67.94 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.0006933/0.4169, allocations: 434.3 kB / 0.4992 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/0.4174, allocations: 379.4 kB / 0.4995 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/0.42, allocations: 1.19 MB / 0.5007 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.42, allocations: 4 kB / 0.5007 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.42, allocations: 0 / 0.5007 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.42, allocations: 3.984 kB / 0.5007 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003502/0.4236, allocations: 2.1 MB / 0.5027 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.617e-05/0.4237, allocations: 68 kB / 0.5028 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.4242, allocations: 95.92 kB / 0.5029 GB, free: 2.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.4242, allocations: 4 kB / 0.5029 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.4242, allocations: 31.98 kB / 0.5029 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.4243, allocations: 0 / 0.5029 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4243, allocations: 4 kB / 0.5029 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.4266, allocations: 1.309 MB / 0.5042 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007399/0.4274, allocations: 472.3 kB / 0.5047 GB, free: 292 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/0.4277, allocations: 12 kB / 0.5047 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007609/0.4285, allocations: 35.89 kB / 0.5047 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.4287, allocations: 59.89 kB / 0.5048 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-05/0.4288, allocations: 43.92 kB / 0.5048 GB, free: 140 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.4315, allocations: 1.911 MB / 0.5067 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4315, allocations: 0 / 0.5067 GB, free: 14.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001444/0.433, allocations: 0.5816 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.001242/0.4342, allocations: 0.7649 MB / 0.508 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.4359, allocations: 0.8135 MB / 0.5088 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.436, allocations: 0 / 0.5088 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007936/0.4368, allocations: 443 kB / 0.5092 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.4394, allocations: 0.6078 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.007143/0.4466, allocations: 4.368 MB / 0.5141 GB, free: 6.551 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/0.4482, allocations: 1.657 MB / 0.5157 GB, free: 4.867 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000321/0.4485, allocations: 163.4 kB / 0.5158 GB, free: 4.707 MB / 446.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4485, allocations: 0 / 0.5158 GB, free: 4.707 MB / 446.1 MB Notification: Performance of Templates: time 0.277/0.7255, allocations: 37.58 MB / 0.5525 GB, free: 125.2 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