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.001135/0.001135, allocations: 109.5 kB / 17.06 MB, free: 5.992 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.0009415/0.0009415, allocations: 192 kB / 18 MB, free: 5.082 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.303/1.303, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009472/0.0009473, allocations: 55.91 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2571, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008222/0.2653, allocations: 8.026 MB / 408.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02044/0.2858, allocations: 19.42 MB / 428.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.2871, allocations: 63.44 kB / 428.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.2893, allocations: 0.8605 MB / 429.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006104/0.2955, allocations: 1.815 MB / 430.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00433/0.2998, allocations: 1.342 MB / 432.2 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004901/0.3047, allocations: 3.257 MB / 435.5 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.3051, allocations: 224.6 kB / 435.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007725/0.3059, allocations: 0.5677 MB / 436.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000572/0.3065, allocations: 0.5629 MB / 436.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.306e-05/0.3066, allocations: 44 kB / 436.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.3101, allocations: 1.44 MB / 438.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.3103, allocations: 166.8 kB / 438.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006302/0.3109, allocations: 0.6715 MB / 439.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002928/0.3139, allocations: 2.219 MB / 441.4 MB, free: 40 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3139, allocations: 4 kB / 441.4 MB, free: 36 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3139, allocations: 0 / 441.4 MB, free: 36 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.3139, allocations: 0 / 441.4 MB, free: 36 kB / 350.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.002726/0.3166, allocations: 2 MB / 443.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3167, allocations: 15.97 kB / 443.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.3169, allocations: 197.6 kB / 443.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.3186, allocations: 1.346 MB / 444.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.3186, allocations: 24.5 kB / 445 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.699e-05/0.3187, allocations: 28 kB / 445 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008252/0.3196, allocations: 433.2 kB / 445.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3196, allocations: 3.938 kB / 445.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.3196, allocations: 12 kB / 445.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.3197, allocations: 19.98 kB / 445.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3207, allocations: 470.1 kB / 445.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.3231, allocations: 1.607 MB / 447.5 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.324, allocations: 367.4 kB / 447.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000676/0.3247, allocations: 422.2 kB / 448.3 MB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0136/0.3383, allocations: 15.21 MB / 463.5 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005902/0.3389, allocations: 259.1 kB / 463.8 MB, free: 7.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.544e-06/0.3389, allocations: 0 / 463.8 MB, free: 7.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.001983/0.3409, allocations: 0.833 MB / 464.6 MB, free: 6.492 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.341, allocations: 59.34 kB / 464.6 MB, free: 6.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.3426, allocations: 1.459 MB / 466.1 MB, free: 4.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.3427, allocations: 33.7 kB / 466.1 MB, free: 4.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005587/0.3432, allocations: 0.7226 MB / 466.9 MB, free: 4.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.021e-05/0.3433, allocations: 90.73 kB / 466.9 MB, free: 4.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.3435, allocations: 126 kB / 467.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3436, allocations: 330 kB / 467.4 MB, free: 3.609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.344, allocations: 165 kB / 467.6 MB, free: 3.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005421/0.3446, allocations: 355.5 kB / 467.9 MB, free: 3.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009326/0.3455, allocations: 0.5294 MB / 468.4 MB, free: 2.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3456, allocations: 0 / 468.4 MB, free: 2.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001349/0.3469, allocations: 0.7508 MB / 469.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3469, allocations: 8 kB / 469.2 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.065e-05/0.347, allocations: 40.84 kB / 469.2 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.3473, allocations: 144.8 kB / 469.4 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.3477, allocations: 107.8 kB / 469.5 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006046/0.3484, allocations: 0.6849 MB / 470.2 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.3489, allocations: 75.5 kB / 470.2 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.459e-05/0.349, allocations: 32 kB / 470.3 MB, free: 0.5156 MB / 382.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.0003637/0.3493, allocations: 273.3 kB / 470.5 MB, free: 248 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.3495, allocations: 193.7 kB / 470.7 MB, free: 52 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3512, allocations: 0.747 MB / 471.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3513, allocations: 4 kB / 471.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3513, allocations: 0 / 471.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3513, allocations: 4 kB / 471.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3534, allocations: 1.304 MB / 472.8 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/0.3535, allocations: 40 kB / 472.8 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.3537, allocations: 39.95 kB / 472.9 MB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002527/0.354, allocations: 128.8 kB / 473 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.354, allocations: 31.98 kB / 473 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005506/0.3546, allocations: 0.6578 MB / 473.7 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3546, allocations: 0 / 473.7 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.3558, allocations: 0.7126 MB / 474.4 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/0.3561, allocations: 278.7 kB / 474.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.3563, allocations: 15.98 kB / 474.7 MB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.3567, allocations: 28.09 kB / 474.7 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3568, allocations: 47.89 kB / 474.8 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/0.3569, allocations: 16 kB / 474.8 MB, free: 11.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001112/0.358, allocations: 0.9649 MB / 475.7 MB, free: 10.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.358, allocations: 3.938 kB / 475.7 MB, free: 10.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009106/0.3589, allocations: 327.8 kB / 476.1 MB, free: 10.54 MB / 398.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.0008245/0.3597, allocations: 0.5766 MB / 476.6 MB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.361, allocations: 0.5239 MB / 477.2 MB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.361, allocations: 0 / 477.2 MB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006336/0.3616, allocations: 291.2 kB / 477.4 MB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.3628, allocations: 303.1 kB / 477.7 MB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.3661, allocations: 2.195 MB / 479.9 MB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.3667, allocations: 1.149 MB / 481.1 MB, free: 5.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004936/0.3672, allocations: 199.9 kB / 481.3 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.3674, allocations: 87.44 kB / 481.4 MB, free: 5.129 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3674, allocations: 4 kB / 481.4 MB, free: 5.125 MB / 398.1 MB Notification: Performance of Templates: time 0.0304/0.3978, allocations: 19.77 MB / 0.4894 GB, free: 1.5 MB / 414.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/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