Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 113.8 kB / 17.32 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 201.8 kB / 18.26 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.4 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 54.22 kB / 306.4 MB, free: 0.6875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.0919, allocations: 50.53 MB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008378/0.1003, allocations: 8.007 MB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1787/0.2791, allocations: 19.27 MB / 384.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.2809, allocations: 34.78 kB / 384.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00293/0.284, allocations: 0.7701 MB / 385.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005761/0.2897, allocations: 1.543 MB / 386.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005278/0.295, allocations: 1.162 MB / 387.8 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005291/0.3003, allocations: 3.326 MB / 391.1 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003859/0.3007, allocations: 226.1 kB / 391.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009394/0.3017, allocations: 0.5577 MB / 391.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005283/0.3022, allocations: 0.5587 MB / 392.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.297e-05/0.3023, allocations: 42.06 kB / 392.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004251/0.3066, allocations: 1.463 MB / 393.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.3068, allocations: 172.5 kB / 394.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006979/0.3075, allocations: 0.6764 MB / 394.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002978/0.3105, allocations: 2.19 MB / 397 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3105, allocations: 0 / 397 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3105, allocations: 0 / 397 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.3105, allocations: 1.375 kB / 397 MB, free: 0.5273 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.002827/0.3133, allocations: 2.009 MB / 399 MB, free: 14.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3134, allocations: 9.688 kB / 399 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.3136, allocations: 200.7 kB / 399.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.3155, allocations: 1.362 MB / 400.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.3155, allocations: 19 kB / 400.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.3156, allocations: 25.09 kB / 400.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008734/0.3165, allocations: 432.8 kB / 401 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3165, allocations: 3.938 kB / 401 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.3165, allocations: 10.84 kB / 401 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.3166, allocations: 6.969 kB / 401 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.3176, allocations: 483.7 kB / 401.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.3201, allocations: 1.623 MB / 403.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.3209, allocations: 367 kB / 403.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006581/0.3216, allocations: 404.8 kB / 403.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/0.3361, allocations: 15.53 MB / 419.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006152/0.3367, allocations: 265.3 kB / 419.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.164e-06/0.3368, allocations: 4 kB / 419.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00204/0.3388, allocations: 0.8407 MB / 420.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.3389, allocations: 55.41 kB / 420.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/0.3405, allocations: 1.455 MB / 422 MB, free: 8.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.3406, allocations: 33.7 kB / 422 MB, free: 8.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005535/0.3411, allocations: 0.7148 MB / 422.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.151e-05/0.3412, allocations: 102.7 kB / 422.9 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3414, allocations: 130 kB / 423 MB, free: 7.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3415, allocations: 329.9 kB / 423.3 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.342, allocations: 157.6 kB / 423.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.3425, allocations: 359.4 kB / 423.8 MB, free: 6.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009664/0.3435, allocations: 0.5339 MB / 424.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3435, allocations: 4 kB / 424.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001404/0.3449, allocations: 0.7514 MB / 425.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.345, allocations: 12.12 kB / 425.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-05/0.345, allocations: 47.25 kB / 425.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002954/0.3453, allocations: 132.8 kB / 425.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.3458, allocations: 107.8 kB / 425.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005937/0.3464, allocations: 0.6851 MB / 426.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006784/0.3471, allocations: 67.47 kB / 426.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/0.3471, allocations: 32 kB / 426.2 MB, free: 3.762 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.0003755/0.3475, allocations: 277.5 kB / 426.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.3477, allocations: 185.9 kB / 426.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.3495, allocations: 0.7492 MB / 427.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3496, allocations: 4 kB / 427.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3496, allocations: 4 kB / 427.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3496, allocations: 0 / 427.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.3517, allocations: 1.307 MB / 428.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.776e-05/0.3518, allocations: 36 kB / 428.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.352, allocations: 43.95 kB / 428.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002286/0.3523, allocations: 124.9 kB / 428.9 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.3523, allocations: 16 kB / 428.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005337/0.3529, allocations: 0.6771 MB / 429.6 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3529, allocations: 0 / 429.6 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.3541, allocations: 0.7124 MB / 430.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004003/0.3545, allocations: 278.8 kB / 430.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.3547, allocations: 8 kB / 430.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.3552, allocations: 27.95 kB / 430.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3553, allocations: 39.97 kB / 430.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.3553, allocations: 19.98 kB / 430.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001081/0.3564, allocations: 0.9571 MB / 431.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.3564, allocations: 4 kB / 431.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008664/0.3573, allocations: 331.7 kB / 432 MB, free: 13.8 MB / 350.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.0007814/0.3581, allocations: 0.5789 MB / 432.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3594, allocations: 0.5224 MB / 433.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3594, allocations: 3.938 kB / 433.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006246/0.36, allocations: 291.5 kB / 433.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.3613, allocations: 324.6 kB / 433.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.3646, allocations: 2.625 MB / 436.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/0.3653, allocations: 1.149 MB / 437.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006686/0.366, allocations: 203.9 kB / 437.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3661, allocations: 91.44 kB / 437.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3661, allocations: 0 / 437.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of Templates: time 0.03075/0.3969, allocations: 19.6 MB / 457.3 MB, free: 4.422 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches