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.001135/0.001135, allocations: 115.3 kB / 17.29 MB, free: 6.324 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.001163/0.001163, allocations: 197.3 kB / 18.2 MB, free: 5.406 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.338/1.338, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009522/0.0009521, allocations: 47.02 kB / 300.8 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08459, allocations: 49.45 MB / 350.2 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0131/0.09772, allocations: 15.16 MB / 365.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1751/0.2729, allocations: 20.58 MB / 386 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002516/0.2754, allocations: 29.88 kB / 386 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0036/0.2791, allocations: 1.107 MB / 387.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00819/0.2873, allocations: 2.014 MB / 389.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005279/0.2926, allocations: 1.267 MB / 390.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009492/0.3021, allocations: 6.668 MB / 397.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007672/0.3029, allocations: 474.5 kB / 397.5 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.3048, allocations: 1.119 MB / 398.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.3061, allocations: 1.141 MB / 399.8 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.3063, allocations: 80.88 kB / 399.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004393/0.3107, allocations: 1.486 MB / 401.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004064/0.3112, allocations: 334.7 kB / 401.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.3129, allocations: 1.446 MB / 403.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.3159, allocations: 2.961 MB / 406.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3159, allocations: 0 / 406.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3159, allocations: 0 / 406.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.543e-05/0.316, allocations: 0 / 406.1 MB, free: 13.3 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.005234/0.3212, allocations: 3.835 MB / 409.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3213, allocations: 8.031 kB / 409.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004817/0.3218, allocations: 414.9 kB / 410.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003289/0.3251, allocations: 2.487 MB / 412.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.3251, allocations: 37 kB / 412.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3252, allocations: 59.89 kB / 412.9 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.3266, allocations: 0.7303 MB / 413.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3266, allocations: 4 kB / 413.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-05/0.3267, allocations: 23.44 kB / 413.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.3267, allocations: 19.98 kB / 413.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.3282, allocations: 0.8163 MB / 414.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.3333, allocations: 3.106 MB / 417.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.3345, allocations: 0.5791 MB / 418.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009607/0.3354, allocations: 0.6516 MB / 418.8 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02741/0.3629, allocations: 30.12 MB / 449 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007422/0.3637, allocations: 365.5 kB / 449.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.3637, allocations: 0 / 449.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002148/0.3658, allocations: 1.112 MB / 450.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.3659, allocations: 59.41 kB / 450.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.3694, allocations: 3.09 MB / 453.6 MB, free: 9.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.936e-05/0.3695, allocations: 37.69 kB / 453.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.3707, allocations: 1.569 MB / 455.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.3709, allocations: 177.7 kB / 455.4 MB, free: 7.613 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.3712, allocations: 230.1 kB / 455.6 MB, free: 7.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3713, allocations: 337.9 kB / 455.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.3719, allocations: 241.9 kB / 456.1 MB, free: 6.812 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007506/0.3726, allocations: 0.6059 MB / 456.7 MB, free: 6.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.374, allocations: 0.8935 MB / 457.6 MB, free: 4.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.374, allocations: 4 kB / 457.6 MB, free: 4.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002178/0.3762, allocations: 1.241 MB / 458.9 MB, free: 3.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.3762, allocations: 11.94 kB / 458.9 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.3764, allocations: 83.98 kB / 459 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.3764, allocations: 20 kB / 459 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007031/0.3771, allocations: 204 kB / 459.2 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.3771, allocations: 27.92 kB / 459.2 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.3782, allocations: 103.1 kB / 459.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.3784, allocations: 64 kB / 459.4 MB, free: 3.211 MB / 366.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.0007997/0.3792, allocations: 453.5 kB / 459.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004303/0.3796, allocations: 399.1 kB / 460.2 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.3824, allocations: 1.225 MB / 461.4 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3824, allocations: 8 kB / 461.5 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3824, allocations: 0 / 461.5 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3824, allocations: 3.984 kB / 461.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.3857, allocations: 2.14 MB / 463.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-05/0.3859, allocations: 71.94 kB / 463.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.3863, allocations: 99.92 kB / 463.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3863, allocations: 0 / 463.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-05/0.3864, allocations: 31.98 kB / 463.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.381e-06/0.3864, allocations: 4 kB / 463.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3864, allocations: 0 / 463.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.3886, allocations: 1.329 MB / 465.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/0.3893, allocations: 488.1 kB / 465.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002937/0.3896, allocations: 15.98 kB / 465.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006664/0.3903, allocations: 27.97 kB / 465.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3905, allocations: 60.81 kB / 465.7 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.3905, allocations: 36 kB / 465.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.393, allocations: 2.007 MB / 467.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.393, allocations: 4 kB / 467.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001331/0.3943, allocations: 0.6011 MB / 468.4 MB, free: 10.1 MB / 382.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.00105/0.3954, allocations: 0.7772 MB / 469.1 MB, free: 9.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.397, allocations: 0.8293 MB / 470 MB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.397, allocations: 0 / 470 MB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006934/0.3977, allocations: 446.9 kB / 470.4 MB, free: 8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.4003, allocations: 0.659 MB / 471.1 MB, free: 7.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006375/0.4067, allocations: 5.455 MB / 476.5 MB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.4077, allocations: 1.706 MB / 478.2 MB, free: 108 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.408, allocations: 159.5 kB / 478.4 MB, free: 15.95 MB / 398.1 MB Notification: Performance of SimCode: time 4.4e-07/0.408, allocations: 0 / 478.4 MB, free: 15.95 MB / 398.1 MB Notification: Performance of Templates: time 0.05484/0.4629, allocations: 38.41 MB / 0.5047 GB, free: 9.703 MB / 430.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/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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches