Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.0012, allocations: 95.53 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 175 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002362/0.0002363, allocations: 7.141 kB / 300.7 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0799/0.08015, allocations: 50.43 MB / 351.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01086/0.09106, allocations: 12.29 MB / 363.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01923/0.1103, allocations: 17.89 MB / 381.3 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.1119, allocations: 31.81 kB / 381.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.1147, allocations: 1.007 MB / 382.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006177/0.1209, allocations: 2.13 MB / 384.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003517/0.1244, allocations: 1.188 MB / 385.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009576/0.134, allocations: 6.213 MB / 391.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007252/0.1348, allocations: 432.9 kB / 392.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.1361, allocations: 0.9875 MB / 393.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.1372, allocations: 1.048 MB / 394.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.1373, allocations: 44 kB / 394.4 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0037/0.1411, allocations: 1.429 MB / 395.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002913/0.1414, allocations: 285.8 kB / 396.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006309/0.142, allocations: 0.6442 MB / 396.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002555/0.1446, allocations: 2.773 MB / 399.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.1446, allocations: 0 / 399.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1446, allocations: 0 / 399.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.419e-05/0.1446, allocations: 3.938 kB / 399.5 MB, free: 11.31 MB / 334.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.004655/0.1493, allocations: 3.381 MB / 402.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1493, allocations: 8.031 kB / 402.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.1497, allocations: 407 kB / 403.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00344/0.1532, allocations: 2.288 MB / 405.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.1532, allocations: 37 kB / 405.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.1533, allocations: 59.91 kB / 405.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1546, allocations: 0.746 MB / 406.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1547, allocations: 11.88 kB / 406.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.1547, allocations: 19.98 kB / 406.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.1548, allocations: 23.95 kB / 406.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.1563, allocations: 0.8554 MB / 407.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004796/0.1611, allocations: 3.102 MB / 410.4 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.1623, allocations: 0.622 MB / 411.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1821/0.3445, allocations: 30.28 MB / 441.3 MB, free: 54.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007353/0.3452, allocations: 385.6 kB / 441.7 MB, free: 54.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.185e-06/0.3453, allocations: 0 / 441.7 MB, free: 54.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002228/0.3475, allocations: 1.489 MB / 443.2 MB, free: 53.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.3475, allocations: 61.91 kB / 443.3 MB, free: 53.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/0.3508, allocations: 3.046 MB / 446.3 MB, free: 52.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.3509, allocations: 39.06 kB / 446.4 MB, free: 52.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.352, allocations: 1.577 MB / 447.9 MB, free: 52.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3521, allocations: 169.3 kB / 448.1 MB, free: 52.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.3522, allocations: 15.94 kB / 448.1 MB, free: 52.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.63e-05/0.3522, allocations: 329.9 kB / 448.4 MB, free: 51.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.3528, allocations: 270.5 kB / 448.7 MB, free: 51.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006029/0.3534, allocations: 0.6163 MB / 449.3 MB, free: 51.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000579/0.354, allocations: 341.6 kB / 449.6 MB, free: 50.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.354, allocations: 3.906 kB / 449.7 MB, free: 50.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001726/0.3557, allocations: 1.282 MB / 450.9 MB, free: 50.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3557, allocations: 15.73 kB / 450.9 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.193e-05/0.3558, allocations: 78.47 kB / 451 MB, free: 50.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.3559, allocations: 19.56 kB / 451 MB, free: 50.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007006/0.3566, allocations: 210.1 kB / 451.2 MB, free: 50.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/0.3566, allocations: 27.58 kB / 451.3 MB, free: 50.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008676/0.3575, allocations: 124.5 kB / 451.4 MB, free: 50.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.936e-05/0.3575, allocations: 63.16 kB / 451.5 MB, free: 50.23 MB / 350.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 ($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.0005952/0.3582, allocations: 459.3 kB / 451.9 MB, free: 49.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.3584, allocations: 390.4 kB / 452.3 MB, free: 49.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.3612, allocations: 1.275 MB / 453.6 MB, free: 49.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3612, allocations: 7.594 kB / 453.6 MB, free: 49.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3612, allocations: 0 / 453.6 MB, free: 49.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3612, allocations: 3.984 kB / 453.6 MB, free: 49.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.3639, allocations: 2.174 MB / 455.7 MB, free: 47.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.252e-05/0.364, allocations: 69.73 kB / 455.8 MB, free: 47.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004728/0.3645, allocations: 102 kB / 455.9 MB, free: 47.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.3645, allocations: 8.906 kB / 455.9 MB, free: 47.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.3646, allocations: 32.97 kB / 456 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3646, allocations: 1.625 kB / 456 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3646, allocations: 1.562 kB / 456 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.3664, allocations: 1.439 MB / 457.4 MB, free: 46.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006371/0.3671, allocations: 487.9 kB / 457.9 MB, free: 46.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.3674, allocations: 16.05 kB / 457.9 MB, free: 46.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00066/0.3681, allocations: 39.97 kB / 457.9 MB, free: 45.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3682, allocations: 59.94 kB / 458 MB, free: 45.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.962e-05/0.3683, allocations: 41.3 kB / 458 MB, free: 45.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.3702, allocations: 1.971 MB / 460 MB, free: 43.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3702, allocations: 0 / 460 MB, free: 43.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00117/0.3714, allocations: 0.5972 MB / 460.6 MB, free: 43.34 MB / 350.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 (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.0008485/0.3722, allocations: 0.7325 MB / 461.3 MB, free: 42.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.3736, allocations: 0.8607 MB / 462.2 MB, free: 41.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3736, allocations: 9.688 kB / 462.2 MB, free: 41.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006162/0.3742, allocations: 468.3 kB / 462.7 MB, free: 41.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001943/0.3761, allocations: 0.6118 MB / 463.3 MB, free: 40.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004676/0.3808, allocations: 5.098 MB / 468.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007144/0.3816, allocations: 1.776 MB / 470.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.3826, allocations: 365.1 kB / 470.5 MB, free: 33.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.3828, allocations: 151.4 kB / 470.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3828, allocations: 0 / 470.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of Templates: time 0.0413/0.4241, allocations: 29.18 MB / 499.8 MB, free: 4.398 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches