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.001532/0.001532, allocations: 100.9 kB / 17.59 MB, free: 5.426 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.001771/0.001771, allocations: 191.6 kB / 18.51 MB, free: 4.504 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.382/1.382, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 57.86 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1065, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01275/0.1193, allocations: 15.3 MB / 366 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1735/0.2929, allocations: 20.74 MB / 386.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002472/0.2954, allocations: 29.81 kB / 386.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003625/0.2991, allocations: 1.258 MB / 388.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007806/0.3069, allocations: 2.347 MB / 390.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005024/0.3119, allocations: 1.439 MB / 391.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009468/0.3214, allocations: 6.58 MB / 398.4 MB, free: 2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007591/0.3222, allocations: 471.5 kB / 398.9 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.3238, allocations: 1.095 MB / 400 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.325, allocations: 1.146 MB / 401.1 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002155/0.3253, allocations: 77.41 kB / 401.2 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004327/0.3296, allocations: 1.479 MB / 402.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004138/0.33, allocations: 341.4 kB / 403 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.3318, allocations: 1.435 MB / 404.4 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.337, allocations: 3.944 MB / 408.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.337, allocations: 0 / 408.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.337, allocations: 0 / 408.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.874e-05/0.3371, allocations: 3.938 kB / 408.4 MB, free: 11.06 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.005071/0.3422, allocations: 3.842 MB / 412.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3422, allocations: 8.031 kB / 412.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004752/0.3427, allocations: 410.9 kB / 412.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003175/0.3459, allocations: 2.487 MB / 415.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.346, allocations: 37 kB / 415.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.3461, allocations: 55.89 kB / 415.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3474, allocations: 0.7342 MB / 416 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3474, allocations: 4 kB / 416 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-05/0.3475, allocations: 20 kB / 416 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.3475, allocations: 19.98 kB / 416 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.3491, allocations: 0.8163 MB / 416.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004882/0.354, allocations: 3.102 MB / 419.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3552, allocations: 0.579 MB / 420.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000987/0.3562, allocations: 0.6516 MB / 421.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02826/0.3844, allocations: 30.12 MB / 451.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007543/0.3852, allocations: 369.4 kB / 451.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.534e-06/0.3853, allocations: 4 kB / 451.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.0023/0.3876, allocations: 1.101 MB / 452.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.3876, allocations: 71.38 kB / 452.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.3913, allocations: 3.083 MB / 455.9 MB, free: 7.172 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.135e-05/0.3914, allocations: 33.7 kB / 455.9 MB, free: 7.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.3926, allocations: 1.573 MB / 457.5 MB, free: 5.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.3928, allocations: 165.7 kB / 457.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3931, allocations: 234.1 kB / 457.9 MB, free: 5.152 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3932, allocations: 334 kB / 458.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.3938, allocations: 253.8 kB / 458.5 MB, free: 4.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007832/0.3946, allocations: 0.5942 MB / 459.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.3961, allocations: 0.9019 MB / 460 MB, free: 2.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3961, allocations: 4 kB / 460 MB, free: 2.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002226/0.3983, allocations: 1.237 MB / 461.2 MB, free: 1.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.3984, allocations: 15.94 kB / 461.2 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.3985, allocations: 80.86 kB / 461.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.3985, allocations: 16 kB / 461.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007125/0.3992, allocations: 200.9 kB / 461.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/0.3993, allocations: 31.86 kB / 461.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009442/0.4002, allocations: 107.2 kB / 461.6 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.4003, allocations: 68 kB / 461.7 MB, free: 0.9727 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.0007012/0.401, allocations: 454.2 kB / 462.1 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000359/0.4014, allocations: 403.1 kB / 462.5 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002918/0.4043, allocations: 1.22 MB / 463.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.4044, allocations: 7.984 kB / 463.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4044, allocations: 0 / 463.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.4044, allocations: 0 / 463.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003216/0.4076, allocations: 2.143 MB / 465.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.46e-05/0.4077, allocations: 71.98 kB / 466 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/0.4082, allocations: 97.73 kB / 466.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.4082, allocations: 4 kB / 466.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.4083, allocations: 28 kB / 466.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.4083, allocations: 0 / 466.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4083, allocations: 7.938 kB / 466.1 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.4106, allocations: 1.322 MB / 467.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006903/0.4113, allocations: 496.1 kB / 467.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003022/0.4116, allocations: 12 kB / 467.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006719/0.4123, allocations: 31.89 kB / 468 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.4124, allocations: 59.95 kB / 468 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.4125, allocations: 36 kB / 468.1 MB, free: 10.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.415, allocations: 2.007 MB / 470.1 MB, free: 8.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.415, allocations: 0 / 470.1 MB, free: 8.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001298/0.4163, allocations: 0.605 MB / 470.7 MB, free: 7.863 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.00101/0.4173, allocations: 0.7696 MB / 471.4 MB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.419, allocations: 0.8292 MB / 472.3 MB, free: 6.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.4191, allocations: 4.062 kB / 472.3 MB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007605/0.4198, allocations: 447 kB / 472.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.4225, allocations: 0.6611 MB / 473.4 MB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.4285, allocations: 4.635 MB / 478 MB, free: 436 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.4296, allocations: 1.71 MB / 479.7 MB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.4299, allocations: 155.4 kB / 479.9 MB, free: 14.54 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4299, allocations: 0 / 479.9 MB, free: 14.54 MB / 398.1 MB Notification: Performance of Templates: time 0.05336/0.4833, allocations: 38.4 MB / 0.5061 GB, free: 8.301 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