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.001036/0.001037, allocations: 104.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 56.28 kB / 306.2 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08777/0.08896, allocations: 50.55 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1687/0.2577, allocations: 15.16 MB / 371.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0193/0.277, allocations: 21 MB / 392.9 MB, free: 64 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.2793, allocations: 30.38 kB / 393 MB, free: 52 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.2828, allocations: 1.106 MB / 394.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.2909, allocations: 1.966 MB / 396.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004931/0.2958, allocations: 1.203 MB / 397.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.3064, allocations: 6.56 MB / 403.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008292/0.3073, allocations: 450 kB / 404.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.3092, allocations: 1.078 MB / 405.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.3103, allocations: 1.131 MB / 406.5 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.3105, allocations: 49.56 kB / 406.5 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004939/0.3154, allocations: 1.461 MB / 408 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003579/0.3158, allocations: 309.5 kB / 408.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001615/0.3174, allocations: 1.413 MB / 409.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004775/0.3222, allocations: 3.883 MB / 413.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3222, allocations: 0 / 413.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3223, allocations: 4 kB / 413.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.879e-05/0.3223, allocations: 0 / 413.6 MB, free: 3.117 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.005029/0.3273, allocations: 3.822 MB / 417.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3274, allocations: 8.031 kB / 417.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000425/0.3278, allocations: 418.9 kB / 417.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003241/0.3311, allocations: 2.494 MB / 420.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.3311, allocations: 33 kB / 420.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3312, allocations: 52 kB / 420.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.3326, allocations: 0.7265 MB / 421.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3326, allocations: 7.984 kB / 421.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.3327, allocations: 20 kB / 421.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.664e-05/0.3327, allocations: 23.92 kB / 421.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.3342, allocations: 0.8163 MB / 422 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.3392, allocations: 3.098 MB / 425.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.3404, allocations: 0.5722 MB / 425.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009977/0.3414, allocations: 0.6445 MB / 426.3 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03166/0.3731, allocations: 30.77 MB / 457.1 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007724/0.3739, allocations: 369.6 kB / 457.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.755e-06/0.374, allocations: 3.938 kB / 457.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002474/0.3764, allocations: 1.108 MB / 458.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.3765, allocations: 63.41 kB / 458.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004495/0.381, allocations: 3.087 MB / 461.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.114e-05/0.3811, allocations: 33.7 kB / 461.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.3825, allocations: 1.572 MB / 463.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.3827, allocations: 161.7 kB / 463.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.383, allocations: 234.1 kB / 463.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3831, allocations: 341.9 kB / 464 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.3838, allocations: 245.9 kB / 464.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008015/0.3846, allocations: 0.6098 MB / 464.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.386, allocations: 0.8935 MB / 465.8 MB, free: 10.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.386, allocations: 7.938 kB / 465.8 MB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002254/0.3883, allocations: 1.24 MB / 467 MB, free: 8.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3883, allocations: 12.97 kB / 467 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.3884, allocations: 83.98 kB / 467.1 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.622e-05/0.3885, allocations: 16 kB / 467.1 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/0.3892, allocations: 200.3 kB / 467.3 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.54e-05/0.3892, allocations: 31.86 kB / 467.3 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3903, allocations: 99.09 kB / 467.4 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.3904, allocations: 75.92 kB / 467.5 MB, free: 8.246 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.0008007/0.3912, allocations: 457.3 kB / 468 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005166/0.3917, allocations: 403.1 kB / 468.4 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.3947, allocations: 1.207 MB / 469.6 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.3947, allocations: 7.938 kB / 469.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3947, allocations: 4 kB / 469.6 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3947, allocations: 0 / 469.6 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.3984, allocations: 2.147 MB / 471.7 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.929e-05/0.3985, allocations: 71.98 kB / 471.8 MB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004718/0.399, allocations: 87.86 kB / 471.9 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.399, allocations: 7.938 kB / 471.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.969e-05/0.3991, allocations: 35.98 kB / 471.9 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3991, allocations: 4.062 kB / 471.9 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3991, allocations: 4 kB / 471.9 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.4014, allocations: 1.321 MB / 473.3 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008296/0.4023, allocations: 492.1 kB / 473.7 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004016/0.4027, allocations: 12 kB / 473.7 MB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007718/0.4035, allocations: 32.02 kB / 473.8 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.4036, allocations: 63.89 kB / 473.8 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.702e-05/0.4037, allocations: 39.98 kB / 473.9 MB, free: 1.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003006/0.4067, allocations: 2.01 MB / 475.9 MB, free: 15.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4068, allocations: 0 / 475.9 MB, free: 15.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001513/0.4083, allocations: 0.5972 MB / 476.5 MB, free: 15.14 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.001182/0.4095, allocations: 0.776 MB / 477.3 MB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4111, allocations: 0.8092 MB / 478.1 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4111, allocations: 0 / 478.1 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008664/0.412, allocations: 444 kB / 478.5 MB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002805/0.4148, allocations: 0.5966 MB / 479.1 MB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007638/0.4225, allocations: 5.399 MB / 484.5 MB, free: 7.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.424, allocations: 1.706 MB / 486.2 MB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00147/0.4255, allocations: 365.3 kB / 486.6 MB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/0.4258, allocations: 155.4 kB / 486.7 MB, free: 4.773 MB / 398.1 MB Notification: Performance of SimCode: time 2.024e-06/0.4258, allocations: 0 / 486.7 MB, free: 4.773 MB / 398.1 MB Notification: Performance of Templates: time 0.05442/0.4802, allocations: 30.94 MB / 0.5055 GB, free: 5.977 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.0.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