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.001411/0.001411, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 60.12 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2205, allocations: 50.54 MB / 409.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01283/0.2334, allocations: 15.31 MB / 425.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02227/0.2557, allocations: 20.78 MB / 446 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.258, allocations: 91.25 kB / 446.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003202/0.2613, allocations: 1.257 MB / 447.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007638/0.2689, allocations: 2.344 MB / 449.7 MB, free: 9.703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004543/0.2735, allocations: 1.451 MB / 451.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009699/0.2832, allocations: 6.679 MB / 457.8 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009159/0.2842, allocations: 473.5 kB / 458.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001689/0.2859, allocations: 1.135 MB / 459.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.2876, allocations: 1.149 MB / 460.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003524/0.2879, allocations: 76 kB / 460.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004503/0.2924, allocations: 1.479 MB / 462.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004235/0.2929, allocations: 333.5 kB / 462.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.2944, allocations: 1.428 MB / 463.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004901/0.2993, allocations: 3.989 MB / 467.9 MB, free: 7.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2994, allocations: 0 / 467.9 MB, free: 7.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2994, allocations: 0 / 467.9 MB, free: 7.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.043e-05/0.2994, allocations: 0 / 467.9 MB, free: 7.43 MB / 382.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.004849/0.3043, allocations: 3.818 MB / 471.7 MB, free: 3.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3043, allocations: 8.031 kB / 471.7 MB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004084/0.3047, allocations: 414.9 kB / 472.1 MB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.3078, allocations: 2.471 MB / 474.6 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.3079, allocations: 37 kB / 474.6 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.308, allocations: 59.89 kB / 474.7 MB, free: 488 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.3094, allocations: 0.7304 MB / 475.4 MB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.3094, allocations: 3.938 kB / 475.4 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.232e-05/0.3095, allocations: 19.98 kB / 475.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.3095, allocations: 20 kB / 475.4 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.311, allocations: 0.8163 MB / 476.3 MB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004804/0.3159, allocations: 3.098 MB / 479.4 MB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.3171, allocations: 0.5674 MB / 479.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009631/0.318, allocations: 0.6477 MB / 480.6 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0275/0.3456, allocations: 30.77 MB / 0.4994 GB, free: 7.449 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007627/0.3464, allocations: 357.7 kB / 0.4997 GB, free: 7.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.996e-06/0.3464, allocations: 4 kB / 0.4997 GB, free: 7.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002367/0.3488, allocations: 1.116 MB / 0.5008 GB, free: 5.961 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.3488, allocations: 55.41 kB / 0.5008 GB, free: 5.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004022/0.3528, allocations: 3.09 MB / 0.5039 GB, free: 2.805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.3529, allocations: 37.7 kB / 0.5039 GB, free: 2.762 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.3542, allocations: 1.573 MB / 0.5054 GB, free: 1.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.3544, allocations: 169.7 kB / 0.5056 GB, free: 1.012 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.3547, allocations: 226.1 kB / 0.5058 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3548, allocations: 341.9 kB / 0.5061 GB, free: 456 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.3554, allocations: 245.9 kB / 0.5064 GB, free: 212 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008029/0.3562, allocations: 0.5982 MB / 0.507 GB, free: 15.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.3577, allocations: 0.9012 MB / 0.5078 GB, free: 14.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.3577, allocations: 7.938 kB / 0.5078 GB, free: 14.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002245/0.3599, allocations: 1.245 MB / 0.5091 GB, free: 13.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.36, allocations: 8 kB / 0.5091 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.3601, allocations: 83.98 kB / 0.5091 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.808e-05/0.3601, allocations: 20 kB / 0.5092 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007158/0.3608, allocations: 203.6 kB / 0.5094 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-05/0.3609, allocations: 23.92 kB / 0.5094 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.3619, allocations: 115 kB / 0.5095 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.362, allocations: 64 kB / 0.5095 GB, free: 12.59 MB / 446.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.000733/0.3628, allocations: 457.3 kB / 0.51 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004931/0.3633, allocations: 395.1 kB / 0.5104 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002654/0.3659, allocations: 1.207 MB / 0.5115 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.3659, allocations: 4 kB / 0.5115 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.366, allocations: 4 kB / 0.5115 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.366, allocations: 3.984 kB / 0.5116 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.3695, allocations: 2.147 MB / 0.5136 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.592e-05/0.3696, allocations: 68 kB / 0.5137 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.3701, allocations: 95.98 kB / 0.5138 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.3701, allocations: 0 / 0.5138 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.817e-05/0.3702, allocations: 39.92 kB / 0.5138 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3702, allocations: 7.984 kB / 0.5139 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3702, allocations: 0 / 0.5139 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.3725, allocations: 1.321 MB / 0.5151 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007504/0.3733, allocations: 0.4883 MB / 0.5156 GB, free: 6.219 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/0.3737, allocations: 11.98 kB / 0.5156 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007773/0.3745, allocations: 31.97 kB / 0.5157 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.3746, allocations: 55.89 kB / 0.5157 GB, free: 6.121 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.011e-05/0.3747, allocations: 47.92 kB / 0.5158 GB, free: 6.074 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.3773, allocations: 2.007 MB / 0.5177 GB, free: 4.074 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3773, allocations: 0 / 0.5177 GB, free: 4.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001377/0.3787, allocations: 0.5934 MB / 0.5183 GB, free: 3.48 MB / 446.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.001104/0.3798, allocations: 0.7739 MB / 0.5191 GB, free: 2.699 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3814, allocations: 0.8022 MB / 0.5198 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3814, allocations: 192 / 0.5198 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.3822, allocations: 447 kB / 0.5203 GB, free: 1.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.385, allocations: 0.651 MB / 0.5209 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006879/0.3919, allocations: 4.556 MB / 0.5253 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.3933, allocations: 1.706 MB / 0.527 GB, free: 10.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003372/0.3937, allocations: 163.4 kB / 0.5272 GB, free: 10.26 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3937, allocations: 0 / 0.5272 GB, free: 10.26 MB / 462.1 MB Notification: Performance of Templates: time 0.2245/0.6182, allocations: 38.75 MB / 0.565 GB, free: 107.1 MB / 462.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) Reference file matches