Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 109.6 kB / 17.68 MB, free: 5.332 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.001024/0.001024, allocations: 192 kB / 18.62 MB, free: 4.41 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.345/1.345, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 55.23 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1042, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007612/0.1118, allocations: 8.034 MB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1815/0.2933, allocations: 19.42 MB / 378.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009866/0.2944, allocations: 64.38 kB / 379 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002222/0.2966, allocations: 0.854 MB / 379.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006241/0.3029, allocations: 1.804 MB / 381.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005025/0.308, allocations: 1.332 MB / 383 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004951/0.3129, allocations: 3.253 MB / 386.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003726/0.3133, allocations: 227 kB / 386.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007981/0.3141, allocations: 0.5495 MB / 387 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005501/0.3147, allocations: 0.5678 MB / 387.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.904e-05/0.3148, allocations: 40.66 kB / 387.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004015/0.3188, allocations: 1.435 MB / 389.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.319, allocations: 175.6 kB / 389.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005543/0.3195, allocations: 0.6742 MB / 389.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002878/0.3224, allocations: 2.212 MB / 392.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3224, allocations: 0 / 392.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3224, allocations: 0 / 392.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.3225, allocations: 4 kB / 392.1 MB, free: 6.016 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002765/0.3252, allocations: 2.004 MB / 394.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3253, allocations: 9.25 kB / 394.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.3255, allocations: 190 kB / 394.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.327, allocations: 1.36 MB / 395.7 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3271, allocations: 19.88 kB / 395.7 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.3271, allocations: 24.78 kB / 395.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000768/0.3279, allocations: 433.2 kB / 396.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3279, allocations: 3.938 kB / 396.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.328, allocations: 6.75 kB / 396.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.328, allocations: 22.8 kB / 396.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/0.3289, allocations: 471.9 kB / 396.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.3312, allocations: 1.624 MB / 398.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007687/0.332, allocations: 367.9 kB / 398.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005941/0.3326, allocations: 409.3 kB / 399 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01422/0.3468, allocations: 15.2 MB / 414.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005915/0.3474, allocations: 263.6 kB / 414.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.3475, allocations: 0 / 414.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00204/0.3495, allocations: 0.8329 MB / 415.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.3496, allocations: 67.34 kB / 415.4 MB, free: 500 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.3513, allocations: 1.455 MB / 416.8 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.3514, allocations: 37.64 kB / 416.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000589/0.352, allocations: 0.7167 MB / 417.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.792e-05/0.3521, allocations: 97.88 kB / 417.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.3523, allocations: 126 kB / 417.8 MB, free: 14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3524, allocations: 329.9 kB / 418.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.3529, allocations: 157 kB / 418.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.3534, allocations: 367.4 kB / 418.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009857/0.3544, allocations: 0.5318 MB / 419.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.3544, allocations: 4 kB / 419.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0014/0.3558, allocations: 0.7537 MB / 419.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3559, allocations: 8 kB / 419.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.072e-05/0.3559, allocations: 44 kB / 420 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003229/0.3563, allocations: 133.4 kB / 420.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004306/0.3567, allocations: 108.7 kB / 420.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006795/0.3574, allocations: 0.6811 MB / 420.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006779/0.3581, allocations: 63.5 kB / 421 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.3582, allocations: 40.06 kB / 421 MB, free: 10.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004344/0.3586, allocations: 280.8 kB / 421.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.3588, allocations: 193.7 kB / 421.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.3605, allocations: 0.7317 MB / 422.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.3605, allocations: 7.984 kB / 422.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3605, allocations: 1.938 kB / 422.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3605, allocations: 0 / 422.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.3628, allocations: 1.316 MB / 423.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.263e-05/0.3629, allocations: 36.06 kB / 423.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3632, allocations: 43.95 kB / 423.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002254/0.3634, allocations: 124.8 kB / 423.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.3634, allocations: 23.92 kB / 423.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005992/0.364, allocations: 0.6617 MB / 424.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3641, allocations: 4.031 kB / 424.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3654, allocations: 0.7206 MB / 425.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.3658, allocations: 270.8 kB / 425.4 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.366, allocations: 11.98 kB / 425.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.3664, allocations: 31.97 kB / 425.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3665, allocations: 35.95 kB / 425.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.3666, allocations: 29 kB / 425.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.3678, allocations: 0.9571 MB / 426.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3678, allocations: 0 / 426.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009057/0.3687, allocations: 331.8 kB / 426.8 MB, free: 4.633 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008615/0.3696, allocations: 0.5723 MB / 427.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3708, allocations: 0.5196 MB / 427.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3708, allocations: 128 / 427.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006192/0.3714, allocations: 298.8 kB / 428.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.3727, allocations: 311.9 kB / 428.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.3761, allocations: 2.199 MB / 430.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.3767, allocations: 1.145 MB / 431.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005645/0.3773, allocations: 203.8 kB / 432 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.3774, allocations: 91.44 kB / 432.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3775, allocations: 0 / 432.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of Templates: time 0.03149/0.4089, allocations: 19.7 MB / 451.8 MB, free: 11.81 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches