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.0008884/0.0008885, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.0009532/0.0009533, allocations: 179.9 kB / 17.21 MB, free: 6.32 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.365/1.365, allocations: 223.2 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002392/0.0002393, allocations: 4 kB / 300.8 MB, free: 6.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09259, allocations: 50.42 MB / 351.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006296/0.09892, allocations: 7.051 MB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1817/0.2807, allocations: 17.67 MB / 376 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000625/0.2813, allocations: 30.66 kB / 376 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.2831, allocations: 0.7076 MB / 376.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005772/0.2889, allocations: 1.413 MB / 378.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004926/0.2938, allocations: 1.042 MB / 379.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006929/0.3008, allocations: 3.043 MB / 382.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005127/0.3013, allocations: 204.5 kB / 382.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.3025, allocations: 495.4 kB / 382.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009115/0.3034, allocations: 0.5149 MB / 383.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.3036, allocations: 24.92 kB / 383.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006808/0.3104, allocations: 1.313 MB / 384.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.3107, allocations: 145.9 kB / 384.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005718/0.3112, allocations: 322.5 kB / 385.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.3136, allocations: 1.562 MB / 386.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3136, allocations: 2.391 kB / 386.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3136, allocations: 0 / 386.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.3137, allocations: 1 kB / 386.8 MB, free: 6.91 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.003621/0.3173, allocations: 1.809 MB / 388.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.3174, allocations: 11.95 kB / 388.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003233/0.3177, allocations: 192.5 kB / 388.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002692/0.3204, allocations: 1.284 MB / 390 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.3204, allocations: 19.41 kB / 390.1 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.3206, allocations: 27.12 kB / 390.1 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3218, allocations: 456.3 kB / 390.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3218, allocations: 5.469 kB / 390.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.862e-05/0.3219, allocations: 15.12 kB / 390.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.3219, allocations: 6.938 kB / 390.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.3235, allocations: 0.5098 MB / 391.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.3269, allocations: 1.623 MB / 392.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.3282, allocations: 418.2 kB / 393.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/0.3292, allocations: 439.7 kB / 393.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01944/0.3486, allocations: 15.22 MB / 408.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006484/0.3493, allocations: 274.3 kB / 409 MB, free: 6.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.726e-06/0.3494, allocations: 0 / 409 MB, free: 6.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002205/0.3516, allocations: 0.9072 MB / 409.9 MB, free: 6.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3516, allocations: 66.34 kB / 410 MB, free: 5.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/0.3536, allocations: 1.439 MB / 411.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.3537, allocations: 32.58 kB / 411.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000553/0.3542, allocations: 0.7159 MB / 412.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.3544, allocations: 100.8 kB / 412.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.3544, allocations: 12 kB / 412.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3545, allocations: 322 kB / 412.6 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/0.355, allocations: 181 kB / 412.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006245/0.3557, allocations: 383.4 kB / 413.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.3562, allocations: 224.5 kB / 413.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3562, allocations: 4 kB / 413.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001553/0.3577, allocations: 0.7908 MB / 414.2 MB, free: 2.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3578, allocations: 11.95 kB / 414.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.374e-05/0.3578, allocations: 40 kB / 414.2 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003001/0.3581, allocations: 137.6 kB / 414.4 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004256/0.3586, allocations: 115.8 kB / 414.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006205/0.3592, allocations: 0.6734 MB / 415.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/0.3601, allocations: 82.44 kB / 415.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.3601, allocations: 36 kB / 415.3 MB, free: 1.145 MB / 318.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 ($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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005173/0.3607, allocations: 283 kB / 415.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000317/0.361, allocations: 189.7 kB / 415.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.363, allocations: 0.7826 MB / 416.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.363, allocations: 4 kB / 416.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.363, allocations: 0 / 416.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.363, allocations: 3.984 kB / 416.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.3654, allocations: 1.354 MB / 417.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-05/0.3654, allocations: 39.97 kB / 417.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.3657, allocations: 51.95 kB / 418 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.3659, allocations: 132.8 kB / 418.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.366, allocations: 19.95 kB / 418.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006901/0.3667, allocations: 0.6673 MB / 418.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3667, allocations: 0 / 418.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.368, allocations: 0.755 MB / 419.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/0.3686, allocations: 278.7 kB / 419.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.3688, allocations: 8 kB / 419.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.3693, allocations: 35.97 kB / 419.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.3695, allocations: 51.88 kB / 419.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.3695, allocations: 16 kB / 419.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.3709, allocations: 0.9415 MB / 420.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.3709, allocations: 0 / 420.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001069/0.372, allocations: 329.5 kB / 421.2 MB, free: 11.06 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008774/0.3729, allocations: 0.548 MB / 421.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3742, allocations: 0.5513 MB / 422.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3743, allocations: 3.938 kB / 422.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006524/0.3749, allocations: 322.6 kB / 422.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.3764, allocations: 298.8 kB / 422.9 MB, free: 9.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004039/0.3805, allocations: 2.499 MB / 425.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006733/0.3812, allocations: 1.153 MB / 426.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006836/0.3819, allocations: 201 kB / 426.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.382, allocations: 87.44 kB / 426.8 MB, free: 5.418 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.382, allocations: 0 / 426.8 MB, free: 5.418 MB / 334.1 MB Notification: Performance of Templates: time 0.03291/0.415, allocations: 18.4 MB / 445.2 MB, free: 3.191 MB / 350.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