Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.566/1.566, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 64.22 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1052, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.184/0.2892, allocations: 15.3 MB / 373.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02155/0.3108, allocations: 20.8 MB / 394.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.3138, allocations: 30.25 kB / 394.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004159/0.318, allocations: 1.254 MB / 395.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.3286, allocations: 2.344 MB / 398.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005909/0.3345, allocations: 1.447 MB / 399.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.3464, allocations: 6.656 MB / 406.3 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009761/0.3474, allocations: 478.7 kB / 406.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002173/0.3496, allocations: 1.094 MB / 407.8 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00206/0.3517, allocations: 1.146 MB / 409 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003058/0.352, allocations: 77 kB / 409 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005628/0.3576, allocations: 1.478 MB / 410.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005552/0.3582, allocations: 345.5 kB / 410.8 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002352/0.3606, allocations: 1.428 MB / 412.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007286/0.3679, allocations: 3.95 MB / 416.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3679, allocations: 3.938 kB / 416.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3679, allocations: 4 kB / 416.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.518e-05/0.368, allocations: 0 / 416.2 MB, free: 1.531 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.006195/0.3742, allocations: 3.83 MB / 420.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.3743, allocations: 12.03 kB / 420.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005384/0.3748, allocations: 414.9 kB / 420.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003841/0.3787, allocations: 2.487 MB / 423 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.3787, allocations: 44.88 kB / 423 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.3789, allocations: 51.98 kB / 423.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3804, allocations: 0.7343 MB / 423.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3804, allocations: 0 / 423.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.767e-05/0.3805, allocations: 16 kB / 423.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3805, allocations: 19.98 kB / 423.8 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.3822, allocations: 0.8163 MB / 424.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005628/0.3878, allocations: 3.102 MB / 427.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3892, allocations: 0.5751 MB / 428.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/0.3903, allocations: 0.6454 MB / 429 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03358/0.4239, allocations: 30.78 MB / 459.8 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000807/0.4248, allocations: 357.7 kB / 460.1 MB, free: 1.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.4248, allocations: 0 / 460.1 MB, free: 1.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002472/0.4273, allocations: 1.112 MB / 461.2 MB, free: 16 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/0.4273, allocations: 63.39 kB / 461.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004115/0.4315, allocations: 3.087 MB / 464.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.4316, allocations: 33.7 kB / 464.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.4331, allocations: 1.573 MB / 466 MB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.4333, allocations: 165.7 kB / 466.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003223/0.4336, allocations: 230.1 kB / 466.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4337, allocations: 338 kB / 466.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006405/0.4344, allocations: 245.8 kB / 466.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009265/0.4353, allocations: 0.6059 MB / 467.5 MB, free: 9.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.4369, allocations: 0.8935 MB / 468.4 MB, free: 8.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.4369, allocations: 7.938 kB / 468.4 MB, free: 8.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00241/0.4394, allocations: 1.245 MB / 469.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.4394, allocations: 12 kB / 469.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.4395, allocations: 84.12 kB / 469.8 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.4396, allocations: 16 kB / 469.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/0.4403, allocations: 200.2 kB / 470 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.768e-05/0.4404, allocations: 23.92 kB / 470 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009907/0.4414, allocations: 111 kB / 470.1 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4415, allocations: 64 kB / 470.2 MB, free: 6.652 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.0008033/0.4423, allocations: 464.8 kB / 470.6 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004401/0.4428, allocations: 399.1 kB / 471 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/0.4459, allocations: 1.219 MB / 472.2 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.4459, allocations: 8 kB / 472.2 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4459, allocations: 0 / 472.2 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.4459, allocations: 0 / 472.2 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.4496, allocations: 2.139 MB / 474.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000108/0.4498, allocations: 71.98 kB / 474.5 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005601/0.4503, allocations: 91.86 kB / 474.5 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.4503, allocations: 0 / 474.5 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.231e-05/0.4504, allocations: 44.05 kB / 474.6 MB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4504, allocations: 0 / 474.6 MB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4505, allocations: 0 / 474.6 MB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.453, allocations: 1.321 MB / 475.9 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008237/0.4538, allocations: 496 kB / 476.4 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002892/0.4541, allocations: 8 kB / 476.4 MB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006742/0.4548, allocations: 39.95 kB / 476.4 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.455, allocations: 59.89 kB / 476.5 MB, free: 196 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.56e-05/0.4551, allocations: 39.98 kB / 476.5 MB, free: 156 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003262/0.4584, allocations: 2.007 MB / 478.5 MB, free: 14.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4584, allocations: 0 / 478.5 MB, free: 14.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00177/0.4601, allocations: 0.5972 MB / 479.1 MB, free: 13.55 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.001302/0.4615, allocations: 0.7733 MB / 479.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.4635, allocations: 0.8245 MB / 480.7 MB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4635, allocations: 5.25 kB / 480.7 MB, free: 11.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008545/0.4644, allocations: 447 kB / 481.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/0.4673, allocations: 0.6468 MB / 481.8 MB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007489/0.4748, allocations: 4.642 MB / 486.5 MB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.4762, allocations: 1.71 MB / 488.2 MB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003876/0.4766, allocations: 159.4 kB / 488.3 MB, free: 4.23 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4766, allocations: 0 / 488.3 MB, free: 4.23 MB / 398.1 MB Notification: Performance of Templates: time 0.06639/0.543, allocations: 38.45 MB / 0.5144 GB, free: 13.9 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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