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.001404/0.001404, allocations: 107 kB / 17.16 MB, free: 6.324 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.002488/0.002488, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.245/2.245, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 46.77 kB / 300.6 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1798, allocations: 49.45 MB / 350.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01737/0.1972, allocations: 7.998 MB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3553/0.5526, allocations: 19.61 MB / 377.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00289/0.5555, allocations: 34.56 kB / 377.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005963/0.5615, allocations: 0.7621 MB / 378.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01482/0.5765, allocations: 1.493 MB / 380 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.59, allocations: 1.114 MB / 381.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01279/0.6028, allocations: 3.202 MB / 384.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000988/0.6039, allocations: 216.8 kB / 384.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.6059, allocations: 0.5307 MB / 385 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.6079, allocations: 0.55 MB / 385.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004999/0.6084, allocations: 25.97 kB / 385.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0112/0.6197, allocations: 1.434 MB / 387 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005452/0.6203, allocations: 153.5 kB / 387.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.6222, allocations: 0.669 MB / 387.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004162/0.6264, allocations: 1.593 MB / 389.4 MB, free: 6.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.6265, allocations: 4 kB / 389.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6265, allocations: 0 / 389.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.358e-05/0.6266, allocations: 0 / 389.4 MB, free: 6.16 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.006347/0.6329, allocations: 2.014 MB / 391.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/0.633, allocations: 11.95 kB / 391.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000613/0.6337, allocations: 188.5 kB / 391.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003963/0.6376, allocations: 1.362 MB / 393 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.6377, allocations: 20.47 kB / 393 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.6379, allocations: 30.8 kB / 393.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.6394, allocations: 432.8 kB / 393.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.6395, allocations: 3.25 kB / 393.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.466e-05/0.6396, allocations: 8 kB / 393.5 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.6396, allocations: 15.02 kB / 393.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.6416, allocations: 472.8 kB / 394 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005855/0.6475, allocations: 1.623 MB / 395.6 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.6492, allocations: 371.8 kB / 396 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.6506, allocations: 407.2 kB / 396.4 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02953/0.6801, allocations: 15.21 MB / 411.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.6813, allocations: 255.2 kB / 411.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 5.01e-06/0.6814, allocations: 0 / 411.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00419/0.6856, allocations: 0.8368 MB / 412.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.6857, allocations: 65.92 kB / 412.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/0.6902, allocations: 1.455 MB / 414.2 MB, free: 144 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.6904, allocations: 33.7 kB / 414.2 MB, free: 104 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.6915, allocations: 0.7148 MB / 414.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.6918, allocations: 94.19 kB / 415 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004464/0.6922, allocations: 130 kB / 415.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.6924, allocations: 329.8 kB / 415.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008786/0.6933, allocations: 169 kB / 415.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.6945, allocations: 355.4 kB / 416 MB, free: 14.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.6964, allocations: 0.5486 MB / 416.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.619e-06/0.6964, allocations: 0 / 416.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003261/0.6997, allocations: 0.7434 MB / 417.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.6998, allocations: 8 kB / 417.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/0.6999, allocations: 44 kB / 417.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005695/0.7005, allocations: 129.3 kB / 417.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/0.7013, allocations: 107.8 kB / 417.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.7024, allocations: 0.681 MB / 418.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.7041, allocations: 71.45 kB / 418.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.7043, allocations: 36 kB / 418.3 MB, free: 11.74 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.0008341/0.7051, allocations: 277.7 kB / 418.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007017/0.7058, allocations: 185.8 kB / 418.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.7093, allocations: 0.7515 MB / 419.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.7094, allocations: 4 kB / 419.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.7094, allocations: 0 / 419.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7094, allocations: 7.922 kB / 419.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006636/0.7161, allocations: 1.303 MB / 420.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.776e-05/0.7162, allocations: 39.94 kB / 420.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.7165, allocations: 48.02 kB / 420.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003813/0.7169, allocations: 124.8 kB / 421.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/0.717, allocations: 20 kB / 421.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009197/0.7179, allocations: 0.6733 MB / 421.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.718, allocations: 0 / 421.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.7202, allocations: 0.6976 MB / 422.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.7214, allocations: 278.8 kB / 422.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006791/0.7221, allocations: 11.94 kB / 422.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.7232, allocations: 27.95 kB / 422.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.7234, allocations: 39.97 kB / 422.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-05/0.7235, allocations: 23.98 kB / 422.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00253/0.726, allocations: 0.9571 MB / 423.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.726, allocations: 0 / 423.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001846/0.7279, allocations: 323.8 kB / 424.1 MB, free: 5.801 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.001557/0.7294, allocations: 0.5867 MB / 424.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.7314, allocations: 0.5124 MB / 425.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.7315, allocations: 0 / 425.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009501/0.7324, allocations: 299.4 kB / 425.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/0.7356, allocations: 290.8 kB / 425.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007881/0.7435, allocations: 2.676 MB / 428.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.7449, allocations: 1.149 MB / 429.6 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/0.7453, allocations: 87.44 kB / 429.7 MB, free: 220 kB / 334.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7453, allocations: 0 / 429.7 MB, free: 220 kB / 334.1 MB Notification: Performance of Templates: time 0.06912/0.8145, allocations: 25.75 MB / 455.4 MB, free: 6.547 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 -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) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time