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.001798/0.001799, allocations: 103.9 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002079/0.002079, allocations: 210.4 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002572/0.002572, allocations: 60.06 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.108, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1596/0.2676, allocations: 15.3 MB / 372.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.2863, allocations: 20.8 MB / 393.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.2884, allocations: 31.06 kB / 393.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003894/0.2923, allocations: 1.254 MB / 394.9 MB, free: 15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009243/0.3016, allocations: 2.344 MB / 397.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005276/0.3069, allocations: 1.442 MB / 398.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.3177, allocations: 6.666 MB / 405.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008854/0.3186, allocations: 471.9 kB / 405.8 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.3203, allocations: 1.091 MB / 406.9 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.3215, allocations: 1.15 MB / 408.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.3217, allocations: 75.41 kB / 408.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004358/0.3261, allocations: 1.479 MB / 409.6 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003504/0.3264, allocations: 337.5 kB / 409.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.3279, allocations: 1.436 MB / 411.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004834/0.3328, allocations: 3.954 MB / 415.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3328, allocations: 4 kB / 415.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3328, allocations: 0 / 415.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.233e-05/0.3328, allocations: 0 / 415.3 MB, free: 1.555 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.005329/0.3382, allocations: 3.826 MB / 419.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3382, allocations: 8.031 kB / 419.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004663/0.3387, allocations: 418.9 kB / 419.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.3421, allocations: 2.491 MB / 422.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.3422, allocations: 37 kB / 422.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3423, allocations: 55.98 kB / 422.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.3437, allocations: 0.7265 MB / 422.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3437, allocations: 3.938 kB / 422.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.345e-05/0.3438, allocations: 20 kB / 422.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.3438, allocations: 27.92 kB / 422.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.3455, allocations: 0.8124 MB / 423.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005209/0.3507, allocations: 3.102 MB / 426.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.352, allocations: 0.5713 MB / 427.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.3531, allocations: 0.6502 MB / 428.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03239/0.3855, allocations: 30.77 MB / 458.8 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000775/0.3863, allocations: 365.7 kB / 459.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.145e-06/0.3863, allocations: 0 / 459.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002285/0.3886, allocations: 1.112 MB / 460.3 MB, free: 40 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.3887, allocations: 63.41 kB / 460.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.3924, allocations: 3.087 MB / 463.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.3925, allocations: 29.7 kB / 463.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.3939, allocations: 1.576 MB / 465.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.3941, allocations: 165.7 kB / 465.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.3944, allocations: 230.1 kB / 465.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3946, allocations: 337.9 kB / 465.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006006/0.3952, allocations: 249.4 kB / 466 MB, free: 10.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008824/0.3961, allocations: 0.602 MB / 466.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/0.3976, allocations: 0.8974 MB / 467.5 MB, free: 8.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.3976, allocations: 7.938 kB / 467.5 MB, free: 8.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002104/0.3997, allocations: 1.241 MB / 468.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.3998, allocations: 12 kB / 468.8 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/0.3999, allocations: 83.98 kB / 468.9 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.3999, allocations: 16.72 kB / 468.9 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/0.4007, allocations: 207.6 kB / 469.1 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.198e-05/0.4007, allocations: 19.94 kB / 469.1 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008646/0.4016, allocations: 107 kB / 469.2 MB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.4017, allocations: 67.98 kB / 469.3 MB, free: 6.676 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.0006965/0.4024, allocations: 461.4 kB / 469.7 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003802/0.4028, allocations: 399.1 kB / 470.1 MB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.4058, allocations: 1.213 MB / 471.3 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4058, allocations: 4 kB / 471.3 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4058, allocations: 3.938 kB / 471.3 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4058, allocations: 0 / 471.3 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.4091, allocations: 2.151 MB / 473.5 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001011/0.4092, allocations: 68 kB / 473.6 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/0.4097, allocations: 91.86 kB / 473.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.4098, allocations: 4 kB / 473.6 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.4098, allocations: 31.98 kB / 473.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.4098, allocations: 0 / 473.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4098, allocations: 4 kB / 473.7 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.4122, allocations: 1.325 MB / 475 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006668/0.4128, allocations: 488 kB / 475.5 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/0.4131, allocations: 12 kB / 475.5 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006586/0.4138, allocations: 27.95 kB / 475.5 MB, free: 288 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.414, allocations: 75.83 kB / 475.6 MB, free: 212 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.414, allocations: 40.86 kB / 475.6 MB, free: 172 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002517/0.4166, allocations: 2.007 MB / 477.6 MB, free: 14.17 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4166, allocations: 0 / 477.6 MB, free: 14.17 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001293/0.4179, allocations: 0.6011 MB / 478.2 MB, free: 13.57 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.001119/0.419, allocations: 0.763 MB / 479 MB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4208, allocations: 0.8256 MB / 479.8 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4208, allocations: 4 kB / 479.8 MB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007914/0.4216, allocations: 439 kB / 480.3 MB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.4241, allocations: 0.6588 MB / 480.9 MB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/0.4304, allocations: 4.574 MB / 485.5 MB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.4317, allocations: 1.706 MB / 487.2 MB, free: 4.484 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001306/0.433, allocations: 365.3 kB / 487.6 MB, free: 4.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.4333, allocations: 159.4 kB / 487.7 MB, free: 3.965 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4333, allocations: 0 / 487.7 MB, free: 3.965 MB / 398.1 MB Notification: Performance of Templates: time 0.06029/0.4936, allocations: 32.03 MB / 0.5076 GB, free: 4.082 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches