Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001119, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001117/0.001117, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 60.12 kB / 306.9 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 50.53 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1895/0.2926, allocations: 15.17 MB / 372.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02256/0.3152, allocations: 21 MB / 393.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0027/0.3179, allocations: 30.41 kB / 393.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.3223, allocations: 1.097 MB / 394.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009462/0.3318, allocations: 1.968 MB / 396.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006265/0.3381, allocations: 1.201 MB / 397.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.3506, allocations: 6.554 MB / 404.4 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.3519, allocations: 451.5 kB / 404.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.3545, allocations: 1.074 MB / 406 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3561, allocations: 1.134 MB / 407.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001988/0.3563, allocations: 48.78 kB / 407.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006229/0.3625, allocations: 1.464 MB / 408.6 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006106/0.3632, allocations: 311.5 kB / 408.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002399/0.3656, allocations: 1.413 MB / 410.3 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003285/0.3689, allocations: 2.929 MB / 413.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3689, allocations: 0 / 413.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3689, allocations: 0 / 413.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.006e-05/0.369, allocations: 0 / 413.3 MB, free: 3.922 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.005505/0.3745, allocations: 3.84 MB / 417.1 MB, free: 4 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.3746, allocations: 8.078 kB / 417.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000597/0.3752, allocations: 414.9 kB / 417.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/0.3789, allocations: 2.491 MB / 420 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.3789, allocations: 37 kB / 420 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.3791, allocations: 55.98 kB / 420.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.3805, allocations: 0.7343 MB / 420.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3805, allocations: 0 / 420.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.984e-05/0.3806, allocations: 20 kB / 420.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.3806, allocations: 19.98 kB / 420.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.3822, allocations: 0.8163 MB / 421.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005223/0.3874, allocations: 3.099 MB / 424.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.3886, allocations: 0.5761 MB / 425.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.3896, allocations: 0.6427 MB / 426 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02938/0.419, allocations: 30.79 MB / 456.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007278/0.4198, allocations: 357.7 kB / 457.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.4198, allocations: 0 / 457.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002208/0.422, allocations: 1.116 MB / 458.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.4221, allocations: 63.39 kB / 458.3 MB, free: 2.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/0.4256, allocations: 3.087 MB / 461.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.21e-05/0.4256, allocations: 33.7 kB / 461.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.4269, allocations: 1.573 MB / 463 MB, free: 13.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.4271, allocations: 165.7 kB / 463.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002912/0.4274, allocations: 230.1 kB / 463.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4275, allocations: 341.9 kB / 463.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/0.4281, allocations: 241.9 kB / 464 MB, free: 12.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007704/0.4289, allocations: 0.5981 MB / 464.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.4303, allocations: 0.8935 MB / 465.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.4303, allocations: 11.94 kB / 465.5 MB, free: 10.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002263/0.4326, allocations: 1.241 MB / 466.7 MB, free: 9.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.4326, allocations: 15.97 kB / 466.7 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.4327, allocations: 83.98 kB / 466.8 MB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.189e-05/0.4328, allocations: 20 kB / 466.8 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006764/0.4334, allocations: 195.6 kB / 467 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.4335, allocations: 23.94 kB / 467 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008733/0.4343, allocations: 111.1 kB / 467.2 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.4345, allocations: 68 kB / 467.2 MB, free: 9.039 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.0007965/0.4353, allocations: 456.8 kB / 467.7 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/0.4356, allocations: 399.1 kB / 468.1 MB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.4383, allocations: 1.219 MB / 469.3 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4383, allocations: 7.938 kB / 469.3 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4383, allocations: 0 / 469.3 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.4384, allocations: 4 kB / 469.3 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.4416, allocations: 2.142 MB / 471.4 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.684e-05/0.4417, allocations: 68 kB / 471.5 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.4422, allocations: 91.86 kB / 471.6 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.4422, allocations: 12 kB / 471.6 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.4423, allocations: 31.98 kB / 471.6 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.4423, allocations: 4 kB / 471.6 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4423, allocations: 0 / 471.6 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.4445, allocations: 1.325 MB / 473 MB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/0.4453, allocations: 488.1 kB / 473.4 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.4456, allocations: 16.06 kB / 473.4 MB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006859/0.4463, allocations: 31.95 kB / 473.5 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.4464, allocations: 67.81 kB / 473.5 MB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.4465, allocations: 36 kB / 473.6 MB, free: 2.531 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002499/0.449, allocations: 2.007 MB / 475.6 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.449, allocations: 0 / 475.6 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001322/0.4504, allocations: 0.6011 MB / 476.2 MB, free: 15.93 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.001157/0.4515, allocations: 0.7773 MB / 477 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.4531, allocations: 0.7984 MB / 477.8 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4531, allocations: 0 / 477.8 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007482/0.4539, allocations: 451.2 kB / 478.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.4568, allocations: 0.6029 MB / 478.8 MB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007578/0.4644, allocations: 5.463 MB / 484.3 MB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.4656, allocations: 1.714 MB / 486 MB, free: 6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003502/0.4659, allocations: 155.4 kB / 486.1 MB, free: 5.848 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4659, allocations: 0 / 486.1 MB, free: 5.848 MB / 398.1 MB Notification: Performance of Templates: time 0.05582/0.5218, allocations: 38.42 MB / 0.5123 GB, free: 15.5 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,time,v.p.v