Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000945/0.0009453, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 226.6 MB / 244.3 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007781/0.0007781, allocations: 94.73 kB / 296.4 MB, free: 7.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.000266, allocations: 7.984 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3047, allocations: 51.29 MB / 407.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008147/0.3129, allocations: 13.57 MB / 421.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02026/0.3332, allocations: 18.97 MB / 440 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002909/0.3362, allocations: 31.81 kB / 440.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003809/0.34, allocations: 0.9837 MB / 441 MB, free: 10.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007572/0.3476, allocations: 1.886 MB / 442.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004654/0.3523, allocations: 1.112 MB / 444 MB, free: 7.242 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.3626, allocations: 6.256 MB / 450.3 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.3637, allocations: 437 kB / 450.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001944/0.3657, allocations: 0.9794 MB / 451.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.367, allocations: 1.048 MB / 452.7 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.3672, allocations: 44 kB / 452.8 MB, free: 14.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00463/0.3718, allocations: 1.33 MB / 454.1 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000382/0.3722, allocations: 285.8 kB / 454.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001156/0.3734, allocations: 0.6481 MB / 455 MB, free: 12.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003418/0.3768, allocations: 2.866 MB / 457.9 MB, free: 9.273 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3769, allocations: 4 kB / 457.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3769, allocations: 0 / 457.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.113e-05/0.3769, allocations: 4 kB / 457.9 MB, free: 9.266 MB / 330.7 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.004365/0.3813, allocations: 3.377 MB / 461.3 MB, free: 5.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3813, allocations: 8.031 kB / 461.3 MB, free: 5.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003646/0.3817, allocations: 419 kB / 461.7 MB, free: 5.391 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003281/0.385, allocations: 2.311 MB / 464 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.385, allocations: 29 kB / 464.1 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.3852, allocations: 63.86 kB / 464.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3866, allocations: 0.7499 MB / 464.9 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3866, allocations: 0 / 464.9 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.761e-05/0.3867, allocations: 23.98 kB / 464.9 MB, free: 2.145 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.531e-05/0.3867, allocations: 27.97 kB / 464.9 MB, free: 2.117 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.3883, allocations: 0.8554 MB / 465.8 MB, free: 1.262 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.3937, allocations: 3.122 MB / 468.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3949, allocations: 0.6181 MB / 469.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.396, allocations: 0.6673 MB / 470.2 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02829/0.4243, allocations: 30.79 MB / 0.4892 GB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008242/0.4252, allocations: 385.5 kB / 0.4896 GB, free: 9.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.986e-06/0.4252, allocations: 0 / 0.4896 GB, free: 9.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002528/0.4277, allocations: 1.175 MB / 0.4907 GB, free: 8.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.4278, allocations: 67.12 kB / 0.4908 GB, free: 8.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/0.4317, allocations: 3.04 MB / 0.4938 GB, free: 5.031 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.766e-05/0.4318, allocations: 37.7 kB / 0.4938 GB, free: 4.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.4331, allocations: 1.576 MB / 0.4954 GB, free: 3.402 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.4333, allocations: 169.7 kB / 0.4955 GB, free: 3.234 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/0.4334, allocations: 16 kB / 0.4955 GB, free: 3.219 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4335, allocations: 337.9 kB / 0.4958 GB, free: 2.883 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005931/0.4341, allocations: 265.8 kB / 0.4961 GB, free: 2.625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008565/0.435, allocations: 0.6138 MB / 0.4967 GB, free: 1.836 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006955/0.4357, allocations: 356.5 kB / 0.497 GB, free: 1.488 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4357, allocations: 4 kB / 0.497 GB, free: 1.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002132/0.4378, allocations: 1.276 MB / 0.4983 GB, free: 204 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.4379, allocations: 12 kB / 0.4983 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.475e-05/0.438, allocations: 80 kB / 0.4984 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.438, allocations: 20 kB / 0.4984 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2203/0.6583, allocations: 205.9 kB / 0.4986 GB, free: 96.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.112e-05/0.6584, allocations: 30.75 kB / 0.4986 GB, free: 96.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.6599, allocations: 119.6 kB / 0.4987 GB, free: 96.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.66, allocations: 64.56 kB / 0.4988 GB, free: 96.12 MB / 378.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009621/0.661, allocations: 453.9 kB / 0.4992 GB, free: 96.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005024/0.6615, allocations: 396.6 kB / 0.4996 GB, free: 95.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003037/0.6646, allocations: 1.251 MB / 0.5008 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.6646, allocations: 6.453 kB / 0.5008 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.6646, allocations: 2.922 kB / 0.5008 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.6646, allocations: 1.922 kB / 0.5008 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003232/0.6678, allocations: 2.184 MB / 0.503 GB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.552e-05/0.6679, allocations: 70.7 kB / 0.503 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.6684, allocations: 106.9 kB / 0.5031 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.6685, allocations: 3.906 kB / 0.5031 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.6685, allocations: 36.95 kB / 0.5032 GB, free: 94.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.6685, allocations: 3.969 kB / 0.5032 GB, free: 94.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6685, allocations: 4.547 kB / 0.5032 GB, free: 94.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.6704, allocations: 1.384 MB / 0.5045 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005448/0.671, allocations: 493.7 kB / 0.505 GB, free: 93.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.6712, allocations: 7.969 kB / 0.505 GB, free: 93.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006966/0.672, allocations: 45.88 kB / 0.5051 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.6721, allocations: 53.83 kB / 0.5051 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.188e-05/0.6721, allocations: 39.19 kB / 0.5052 GB, free: 93.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00222/0.6744, allocations: 1.971 MB / 0.5071 GB, free: 93.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6744, allocations: 0 / 0.5071 GB, free: 93.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00146/0.6758, allocations: 0.5933 MB / 0.5077 GB, free: 93.05 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009171/0.6768, allocations: 0.7433 MB / 0.5084 GB, free: 92.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.6781, allocations: 0.8556 MB / 0.5092 GB, free: 92.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.6782, allocations: 0 / 0.5092 GB, free: 92.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006515/0.6788, allocations: 464.7 kB / 0.5097 GB, free: 92.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.6811, allocations: 0.6141 MB / 0.5103 GB, free: 92.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005843/0.687, allocations: 5.183 MB / 0.5153 GB, free: 87.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008254/0.6878, allocations: 1.706 MB / 0.517 GB, free: 86.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.6882, allocations: 159.4 kB / 0.5171 GB, free: 85.87 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6882, allocations: 0 / 0.5171 GB, free: 85.87 MB / 378.7 MB Notification: Performance of Templates: time 0.04812/0.7363, allocations: 38.16 MB / 0.5544 GB, free: 47.8 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches