Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 59.53 kB / 306.9 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1129, allocations: 50.53 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1697/0.2826, allocations: 14.7 MB / 372.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02105/0.3037, allocations: 20.72 MB / 392.9 MB, free: 188 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0039/0.3077, allocations: 31.31 kB / 392.9 MB, free: 176 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.3128, allocations: 1.234 MB / 394.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.3238, allocations: 2.306 MB / 396.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005179/0.329, allocations: 1.441 MB / 397.9 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.3394, allocations: 6.538 MB / 404.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008739/0.3403, allocations: 458.9 kB / 404.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.3422, allocations: 1.065 MB / 405.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.3437, allocations: 1.099 MB / 407 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.3439, allocations: 80.34 kB / 407.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005075/0.349, allocations: 1.481 MB / 408.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005286/0.3495, allocations: 333.6 kB / 408.9 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00209/0.3516, allocations: 1.386 MB / 410.3 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005954/0.3576, allocations: 3.74 MB / 414 MB, free: 2.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3576, allocations: 0 / 414 MB, free: 2.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3576, allocations: 0 / 414 MB, free: 2.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.485e-05/0.3577, allocations: 0 / 414 MB, free: 2.781 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.005224/0.3629, allocations: 3.685 MB / 417.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.363, allocations: 12.03 kB / 417.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000429/0.3634, allocations: 396 kB / 418.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.3666, allocations: 2.433 MB / 420.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.3666, allocations: 33 kB / 420.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3668, allocations: 59.89 kB / 420.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3681, allocations: 0.7265 MB / 421.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3681, allocations: 0 / 421.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.3682, allocations: 24 kB / 421.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.3682, allocations: 19.98 kB / 421.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.3697, allocations: 0.8163 MB / 422.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.3746, allocations: 3.059 MB / 425.3 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.3758, allocations: 0.5789 MB / 425.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009889/0.3768, allocations: 0.6493 MB / 426.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02831/0.4051, allocations: 30.75 MB / 457.3 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007943/0.4059, allocations: 369.5 kB / 457.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.296e-06/0.406, allocations: 0 / 457.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002539/0.4085, allocations: 1.085 MB / 458.7 MB, free: 1.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.4086, allocations: 59.41 kB / 458.8 MB, free: 1.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00422/0.4128, allocations: 2.935 MB / 461.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.22e-05/0.4129, allocations: 33.7 kB / 461.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.4142, allocations: 1.485 MB / 463.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.4143, allocations: 177.7 kB / 463.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.4147, allocations: 226.1 kB / 463.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4148, allocations: 337.9 kB / 464 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.4154, allocations: 241.9 kB / 464.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008126/0.4162, allocations: 0.6059 MB / 464.8 MB, free: 11.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.4177, allocations: 0.8896 MB / 465.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.4177, allocations: 7.938 kB / 465.7 MB, free: 10.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002228/0.42, allocations: 1.226 MB / 466.9 MB, free: 8.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.42, allocations: 12 kB / 466.9 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.4201, allocations: 83.98 kB / 467 MB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.4202, allocations: 16 kB / 467 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007287/0.4209, allocations: 199.7 kB / 467.2 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.231e-05/0.4209, allocations: 24.19 kB / 467.3 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009691/0.4219, allocations: 115 kB / 467.4 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.422, allocations: 67.94 kB / 467.4 MB, free: 8.445 MB / 382.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.0006572/0.4227, allocations: 440.7 kB / 467.9 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.4232, allocations: 383.3 kB / 468.2 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.4261, allocations: 1.195 MB / 469.4 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.4261, allocations: 4 kB / 469.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4261, allocations: 0 / 469.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4262, allocations: 7.984 kB / 469.4 MB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.4295, allocations: 2.092 MB / 471.5 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.183e-05/0.4296, allocations: 68 kB / 471.6 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/0.4301, allocations: 95.92 kB / 471.7 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.4302, allocations: 4 kB / 471.7 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/0.4302, allocations: 31.98 kB / 471.7 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.4302, allocations: 4 kB / 471.7 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4302, allocations: 0.625 kB / 471.7 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.4325, allocations: 1.305 MB / 473 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006999/0.4333, allocations: 476.1 kB / 473.5 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/0.4336, allocations: 12 kB / 473.5 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007321/0.4344, allocations: 31.95 kB / 473.5 MB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.4345, allocations: 63.14 kB / 473.6 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.864e-05/0.4346, allocations: 39.98 kB / 473.6 MB, free: 2.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.4374, allocations: 1.903 MB / 475.5 MB, free: 188 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4374, allocations: 4.062 kB / 475.6 MB, free: 184 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001722/0.4391, allocations: 0.5894 MB / 476.1 MB, free: 15.59 MB / 398.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.001501/0.4407, allocations: 0.7661 MB / 476.9 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.4425, allocations: 0.8333 MB / 477.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.4425, allocations: 0 / 477.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007802/0.4433, allocations: 446.9 kB / 478.2 MB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/0.4462, allocations: 0.6095 MB / 478.8 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/0.4534, allocations: 4.378 MB / 483.2 MB, free: 8.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.4548, allocations: 1.661 MB / 484.8 MB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.4561, allocations: 357.1 kB / 485.2 MB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.4564, allocations: 155.4 kB / 485.3 MB, free: 6.273 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4564, allocations: 0 / 485.3 MB, free: 6.273 MB / 398.1 MB Notification: Performance of Templates: time 0.05415/0.5105, allocations: 31.23 MB / 0.5045 GB, free: 7.18 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches