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.001153/0.001153, allocations: 98.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 203.4 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002216, allocations: 8 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09682, allocations: 51.48 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006247/0.1031, allocations: 6.465 MB / 364.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1733/0.2764, allocations: 16.56 MB / 381.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006956/0.2771, allocations: 30.88 kB / 381.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.2789, allocations: 0.7313 MB / 381.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004481/0.2834, allocations: 1.579 MB / 383.4 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004143/0.2876, allocations: 1.118 MB / 384.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005081/0.2927, allocations: 3.08 MB / 387.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003395/0.293, allocations: 207.9 kB / 387.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007292/0.2938, allocations: 489.1 kB / 388.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005562/0.2943, allocations: 0.5179 MB / 388.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.272e-05/0.2944, allocations: 23.25 kB / 388.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004524/0.2989, allocations: 1.417 MB / 390.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.2991, allocations: 139.7 kB / 390.4 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003759/0.2995, allocations: 325 kB / 390.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.3012, allocations: 1.5 MB / 392.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.3012, allocations: 0.8438 kB / 392.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3012, allocations: 0 / 392.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.3012, allocations: 0 / 392.2 MB, free: 5.168 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.002562/0.3038, allocations: 1.812 MB / 394 MB, free: 3.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.3039, allocations: 8.719 kB / 394 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000195/0.3041, allocations: 198.5 kB / 394.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.3058, allocations: 1.273 MB / 395.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3058, allocations: 19.31 kB / 395.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.629e-05/0.3059, allocations: 29.28 kB / 395.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008238/0.3067, allocations: 450.7 kB / 396 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3068, allocations: 0 / 396 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.3068, allocations: 10.75 kB / 396 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.3068, allocations: 22.75 kB / 396 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.3079, allocations: 0.5024 MB / 396.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.3102, allocations: 1.634 MB / 398.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008586/0.3111, allocations: 416.4 kB / 398.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/0.3257, allocations: 15.6 MB / 414.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006184/0.3263, allocations: 276.2 kB / 414.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.056e-06/0.3264, allocations: 4 kB / 414.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002192/0.3286, allocations: 0.8915 MB / 415.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.3286, allocations: 63.34 kB / 415.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.3303, allocations: 1.444 MB / 416.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.3304, allocations: 29.7 kB / 416.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.3309, allocations: 0.7226 MB / 417.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.963e-05/0.331, allocations: 90.75 kB / 417.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.3311, allocations: 8 kB / 417.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3312, allocations: 333.8 kB / 418 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.3317, allocations: 181 kB / 418.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000546/0.3322, allocations: 380.2 kB / 418.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004832/0.3327, allocations: 216.1 kB / 418.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3328, allocations: 0 / 418.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001444/0.3342, allocations: 0.7944 MB / 419.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3342, allocations: 8 kB / 419.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.788e-05/0.3343, allocations: 43.98 kB / 419.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.3346, allocations: 137.4 kB / 419.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.335, allocations: 115.8 kB / 419.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005769/0.3356, allocations: 0.685 MB / 420.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006772/0.3363, allocations: 83.44 kB / 420.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/0.3364, allocations: 36 kB / 420.7 MB, free: 11.11 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 ($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.0004388/0.3368, allocations: 277 kB / 420.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.337, allocations: 185.8 kB / 421.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.339, allocations: 0.7909 MB / 421.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.339, allocations: 7.953 kB / 421.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.339, allocations: 0 / 421.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.339, allocations: 0 / 421.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.3413, allocations: 1.339 MB / 423.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.563e-05/0.3413, allocations: 36.06 kB / 423.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.3416, allocations: 59.89 kB / 423.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002332/0.3418, allocations: 128.8 kB / 423.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.3419, allocations: 23.98 kB / 423.5 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005144/0.3424, allocations: 0.6616 MB / 424.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.3424, allocations: 4.031 kB / 424.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.3437, allocations: 0.7914 MB / 425 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004063/0.3441, allocations: 274.7 kB / 425.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.3443, allocations: 11.98 kB / 425.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/0.3447, allocations: 39.97 kB / 425.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.92e-05/0.3448, allocations: 39.94 kB / 425.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.3449, allocations: 27.98 kB / 425.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001092/0.3459, allocations: 0.9415 MB / 426.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.346, allocations: 0 / 426.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009373/0.3469, allocations: 335.8 kB / 426.6 MB, free: 4.957 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.0007063/0.3476, allocations: 0.5362 MB / 427.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3489, allocations: 0.5435 MB / 427.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3489, allocations: 0 / 427.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006427/0.3495, allocations: 323.2 kB / 428 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.3508, allocations: 306.2 kB / 428.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.3543, allocations: 2.513 MB / 430.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006624/0.355, allocations: 1.184 MB / 432 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006469/0.3556, allocations: 195.9 kB / 432.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3557, allocations: 91.44 kB / 432.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3558, allocations: 0 / 432.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of Templates: time 0.02892/0.3847, allocations: 17.94 MB / 450.2 MB, free: 13.34 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches