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/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_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/Complex trunk/package.mo): time 0.001239/0.001238, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008372/0.0008372, allocations: 90.78 kB / 292.1 MB, free: 5.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/2.989e-05, allocations: 8 kB / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 51.48 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4751, allocations: 105 MB / 0.4952 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4754, allocations: 70.97 kB / 0.4953 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4978/0.9733, allocations: 143.6 MB / 0.6355 GB, free: 80 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.9733, allocations: 0 / 0.6355 GB, free: 80 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.358e-05/0.9734, allocations: 50.66 kB / 0.6356 GB, free: 80 MB / 442.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.003755/0.9772, allocations: 2.78 MB / 0.6383 GB, free: 78.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.9772, allocations: 7.875 kB / 0.6383 GB, free: 78.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003901/0.9776, allocations: 415.6 kB / 0.6387 GB, free: 78.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003438/0.981, allocations: 2.414 MB / 0.641 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.9811, allocations: 32.25 kB / 0.6411 GB, free: 76.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.9812, allocations: 65.91 kB / 0.6411 GB, free: 76.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.9823, allocations: 0.7851 MB / 0.6419 GB, free: 76.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.9823, allocations: 0 / 0.6419 GB, free: 76.56 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.9824, allocations: 19.97 kB / 0.6419 GB, free: 76.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.9824, allocations: 23.5 kB / 0.6419 GB, free: 76.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008789/0.9833, allocations: 0.7117 MB / 0.6426 GB, free: 76.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/0.9887, allocations: 3.272 MB / 0.6458 GB, free: 74.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006709/0.9894, allocations: 488.8 kB / 0.6463 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006528/0.99, allocations: 0.5925 MB / 0.6469 GB, free: 74.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02732/1.017, allocations: 36.77 MB / 0.6828 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/1.018, allocations: 313 kB / 0.6831 GB, free: 43.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.334e-06/1.018, allocations: 2.344 kB / 0.6831 GB, free: 43.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001122/1.019, allocations: 0.8287 MB / 0.6839 GB, free: 43.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/1.019, allocations: 268.9 kB / 0.6842 GB, free: 42.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003019/1.022, allocations: 2.65 MB / 0.6867 GB, free: 41.72 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/1.022, allocations: 41.58 kB / 0.6868 GB, free: 41.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00094/1.023, allocations: 1.576 MB / 0.6883 GB, free: 40.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/1.023, allocations: 164.9 kB / 0.6885 GB, free: 40.14 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/1.023, allocations: 15.72 kB / 0.6885 GB, free: 40.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.886e-05/1.023, allocations: 341.6 kB / 0.6888 GB, free: 39.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/1.024, allocations: 189.8 kB / 0.689 GB, free: 39.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004164/1.024, allocations: 0.5942 MB / 0.6896 GB, free: 39.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/1.024, allocations: 284.5 kB / 0.6899 GB, free: 38.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/1.024, allocations: 3.406 kB / 0.6899 GB, free: 38.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001334/1.026, allocations: 1.143 MB / 0.691 GB, free: 38.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/1.026, allocations: 11.03 kB / 0.691 GB, free: 38.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9e-05/1.026, allocations: 80.45 kB / 0.6911 GB, free: 38.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.247e-05/1.026, allocations: 20.36 kB / 0.6911 GB, free: 38.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007104/1.027, allocations: 213.3 kB / 0.6913 GB, free: 38.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.176e-05/1.027, allocations: 29.52 kB / 0.6913 GB, free: 38.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/1.028, allocations: 131.9 kB / 0.6914 GB, free: 38.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.3e-05/1.028, allocations: 60.41 kB / 0.6915 GB, free: 38.28 MB / 442.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 () * 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.000143/1.028, allocations: 170.5 kB / 0.6917 GB, free: 38.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/1.028, allocations: 400.6 kB / 0.692 GB, free: 37.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/1.031, allocations: 1.147 MB / 0.6932 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/1.031, allocations: 7.688 kB / 0.6932 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.031, allocations: 3.953 kB / 0.6932 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/1.031, allocations: 7.734 kB / 0.6932 GB, free: 37.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/1.033, allocations: 2.185 MB / 0.6953 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-05/1.034, allocations: 70.7 kB / 0.6954 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/1.034, allocations: 103.6 kB / 0.6955 GB, free: 35.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/1.034, allocations: 11.72 kB / 0.6955 GB, free: 35.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-05/1.034, allocations: 35.98 kB / 0.6955 GB, free: 35.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/1.034, allocations: 2.094 kB / 0.6955 GB, free: 35.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.034, allocations: 0 / 0.6955 GB, free: 35.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/1.035, allocations: 1.239 MB / 0.6967 GB, free: 34.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007062/1.036, allocations: 0.5078 MB / 0.6972 GB, free: 34.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/1.036, allocations: 12 kB / 0.6972 GB, free: 34.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007172/1.037, allocations: 48.02 kB / 0.6973 GB, free: 34.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.037, allocations: 59.94 kB / 0.6973 GB, free: 33.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.915e-05/1.037, allocations: 39.98 kB / 0.6974 GB, free: 33.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002186/1.039, allocations: 2.015 MB / 0.6994 GB, free: 31.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.039, allocations: 0 / 0.6994 GB, free: 31.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001426/1.041, allocations: 0.666 MB / 0.7 GB, free: 31.23 MB / 442.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) * 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.001074/1.042, allocations: 0.877 MB / 0.7009 GB, free: 30.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009661/1.043, allocations: 0.7068 MB / 0.7016 GB, free: 29.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/1.043, allocations: 0 / 0.7016 GB, free: 29.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004092/1.043, allocations: 399.3 kB / 0.7019 GB, free: 29.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/1.046, allocations: 0.6238 MB / 0.7025 GB, free: 28.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/1.05, allocations: 3.27 MB / 0.7057 GB, free: 25.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007905/1.051, allocations: 1.77 MB / 0.7075 GB, free: 23.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001246/1.052, allocations: 386.7 kB / 0.7078 GB, free: 23.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/1.052, allocations: 159.4 kB / 0.708 GB, free: 23.12 MB / 442.7 MB Notification: Performance of SimCode: time 5.72e-07/1.052, allocations: 0 / 0.708 GB, free: 23.12 MB / 442.7 MB Notification: Performance of Templates: time 0.05136/1.104, allocations: 34.33 MB / 0.7415 GB, free: 5 MB / 458.7 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches