Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001183, allocations: 197.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.6 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008272/0.0008271, allocations: 104.3 kB / 295.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2978/0.2978, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002702, allocations: 8 kB / 465.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2903, allocations: 62.95 MB / 0.5159 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialOutput): time 0.002711/0.293, allocations: 2.857 MB / 0.5187 GB, free: 34.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.2953, allocations: 1.508 MB / 0.5201 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.2957, allocations: 19.53 kB / 0.5201 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003949/0.2961, allocations: 108.7 kB / 0.5203 GB, free: 33.83 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.2964, allocations: 151.5 kB / 0.5204 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.2973, allocations: 425.2 kB / 0.5208 GB, free: 33.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006522/0.298, allocations: 0.8173 MB / 0.5216 GB, free: 33.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.2983, allocations: 225 kB / 0.5218 GB, free: 33.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000355/0.2987, allocations: 293.9 kB / 0.5221 GB, free: 32.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003855/0.2991, allocations: 333.3 kB / 0.5224 GB, free: 32.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.725e-05/0.2991, allocations: 24.73 kB / 0.5224 GB, free: 32.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.2993, allocations: 132.3 kB / 0.5226 GB, free: 32.76 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.2995, allocations: 138.8 kB / 0.5227 GB, free: 32.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2997, allocations: 301 kB / 0.523 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.3001, allocations: 0.6339 MB / 0.5236 GB, free: 32.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3001, allocations: 0 / 0.5236 GB, free: 32.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3001, allocations: 0 / 0.5236 GB, free: 32.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.3001, allocations: 0 / 0.5236 GB, free: 32.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00181/0.3019, allocations: 1.062 MB / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.302, allocations: 8.938 kB / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.3022, allocations: 103.7 kB / 0.5247 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007157/0.3029, allocations: 0.5554 MB / 0.5253 GB, free: 31.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.303, allocations: 38.94 kB / 0.5253 GB, free: 31.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.689e-05/0.3031, allocations: 59.56 kB / 0.5254 GB, free: 31.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009286/0.304, allocations: 0.624 MB / 0.526 GB, free: 30.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.3041, allocations: 5.781 kB / 0.526 GB, free: 30.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.3041, allocations: 21.62 kB / 0.526 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3041, allocations: 10.62 kB / 0.526 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009415/0.3051, allocations: 0.4886 MB / 0.5265 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.308, allocations: 2.678 MB / 0.5291 GB, free: 28.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008805/0.3089, allocations: 0.5427 MB / 0.5296 GB, free: 28.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005059/0.3094, allocations: 287.1 kB / 0.5299 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.3095, allocations: 6.109 kB / 0.5299 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.3095, allocations: 37.61 kB / 0.53 GB, free: 28.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.775e-06/0.3095, allocations: 0 / 0.53 GB, free: 28.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=46): time 0.002209/0.3118, allocations: 1.222 MB / 0.5312 GB, free: 27.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.3118, allocations: 134.2 kB / 0.5313 GB, free: 27.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006774/0.3125, allocations: 0.6496 MB / 0.5319 GB, free: 27.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.3126, allocations: 36.48 kB / 0.532 GB, free: 27.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.3127, allocations: 359.1 kB / 0.5323 GB, free: 27.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.3129, allocations: 179.3 kB / 0.5325 GB, free: 27.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.3129, allocations: 10.5 kB / 0.5325 GB, free: 27.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.181e-05/0.313, allocations: 336.5 kB / 0.5328 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.3135, allocations: 302.8 kB / 0.5331 GB, free: 26.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006146/0.3142, allocations: 454.9 kB / 0.5335 GB, free: 26.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.3154, allocations: 0.7558 MB / 0.5343 GB, free: 25.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3154, allocations: 0 / 0.5343 GB, free: 25.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001472/0.3169, allocations: 0.8576 MB / 0.5351 GB, free: 25.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.317, allocations: 223.8 kB / 0.5353 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.317, allocations: 3.156 kB / 0.5353 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.317, allocations: 12.91 kB / 0.5353 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/0.3179, allocations: 207.4 kB / 0.5355 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.3179, allocations: 12.5 kB / 0.5355 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004913/0.3184, allocations: 97.55 kB / 0.5356 GB, free: 25.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.3185, allocations: 21.34 kB / 0.5357 GB, free: 25.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/0.3185, allocations: 5.938 kB / 0.5357 GB, free: 25.34 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00127/0.3198, allocations: 0.7429 MB / 0.5364 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3198, allocations: 5.719 kB / 0.5364 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.3198, allocations: 8.156 kB / 0.5364 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.3205, allocations: 200.1 kB / 0.5366 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.3206, allocations: 15.14 kB / 0.5366 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.321, allocations: 88.77 kB / 0.5367 GB, free: 25.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.3211, allocations: 25 kB / 0.5367 GB, free: 25.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003494/0.3214, allocations: 291.4 kB / 0.537 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.3216, allocations: 73.19 kB / 0.5371 GB, free: 24.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/0.3217, allocations: 96.44 kB / 0.5371 GB, free: 24.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3217, allocations: 5.25 kB / 0.5372 GB, free: 24.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.3218, allocations: 48 / 0.5372 GB, free: 24.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3218, allocations: 7.453 kB / 0.5372 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.3235, allocations: 1.299 MB / 0.5384 GB, free: 23.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3235, allocations: 2.594 kB / 0.5384 GB, free: 23.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.3242, allocations: 121.2 kB / 0.5385 GB, free: 23.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.3242, allocations: 3.312 kB / 0.5385 GB, free: 23.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.866e-05/0.3242, allocations: 14.84 kB / 0.5386 GB, free: 23.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.3242, allocations: 6.188 kB / 0.5386 GB, free: 23.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3242, allocations: 7.688 kB / 0.5386 GB, free: 23.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.3262, allocations: 1.226 MB / 0.5398 GB, free: 23.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.3264, allocations: 196.1 kB / 0.54 GB, free: 23.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.588e-05/0.3265, allocations: 14.97 kB / 0.54 GB, free: 23.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.327, allocations: 69.55 kB / 0.54 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.3272, allocations: 40.89 kB / 0.5401 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.3272, allocations: 15.56 kB / 0.5401 GB, free: 23.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006774/0.3279, allocations: 451.2 kB / 0.5405 GB, free: 22.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3279, allocations: 1 kB / 0.5405 GB, free: 22.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000892/0.3288, allocations: 219.6 kB / 0.5407 GB, free: 22.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002653/0.3291, allocations: 137.9 kB / 0.5409 GB, free: 22.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.3314, allocations: 1.044 MB / 0.5419 GB, free: 22.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3314, allocations: 1.062 kB / 0.5419 GB, free: 22.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000677/0.3321, allocations: 316.9 kB / 0.5422 GB, free: 22.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.3332, allocations: 174.5 kB / 0.5424 GB, free: 22.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.3356, allocations: 1.766 MB / 0.5441 GB, free: 21.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.336, allocations: 0.9557 MB / 0.545 GB, free: 20.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.3362, allocations: 49.38 kB / 0.5451 GB, free: 20.65 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.3362, allocations: 0 / 0.5451 GB, free: 20.65 MB / 378.7 MB Notification: Performance of Templates: time 0.01502/0.3512, allocations: 9.007 MB / 0.5539 GB, free: 17.4 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialOutput/Continuous_InitialOutput.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches