Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.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,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") translateModel(ModelicaTest.Blocks.Continuous,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.6 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007201/0.0007201, allocations: 103.7 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3542/0.3542, allocations: 44.81 MB / 392.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002716, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2966, allocations: 62.95 MB / 0.5159 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.002762/0.2994, allocations: 2.808 MB / 0.5186 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.3016, allocations: 1.51 MB / 0.5201 GB, free: 34.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.3019, allocations: 19.44 kB / 0.5201 GB, free: 34.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.3023, allocations: 105.9 kB / 0.5202 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.3026, allocations: 145 kB / 0.5203 GB, free: 33.96 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009016/0.3035, allocations: 438.5 kB / 0.5208 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006138/0.3042, allocations: 0.7833 MB / 0.5215 GB, free: 33.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003113/0.3045, allocations: 226 kB / 0.5217 GB, free: 33.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003374/0.3048, allocations: 285.7 kB / 0.522 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.3052, allocations: 325.6 kB / 0.5223 GB, free: 33.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.3052, allocations: 24.47 kB / 0.5223 GB, free: 33.01 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.583e-05/0.3053, allocations: 26.75 kB / 0.5224 GB, free: 33.01 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.3055, allocations: 149.3 kB / 0.5225 GB, free: 32.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.3057, allocations: 299.6 kB / 0.5228 GB, free: 32.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.3061, allocations: 0.5372 MB / 0.5233 GB, free: 32.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3061, allocations: 0 / 0.5233 GB, free: 32.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3061, allocations: 0 / 0.5233 GB, free: 32.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3061, allocations: 0 / 0.5233 GB, free: 32.59 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.001716/0.3078, allocations: 1.051 MB / 0.5244 GB, free: 31.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.3079, allocations: 9.031 kB / 0.5244 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.3081, allocations: 109 kB / 0.5245 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006956/0.3088, allocations: 0.5539 MB / 0.525 GB, free: 31.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3088, allocations: 38.84 kB / 0.525 GB, free: 31.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.004e-05/0.3089, allocations: 57.16 kB / 0.5251 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.31, allocations: 0.6315 MB / 0.5257 GB, free: 31.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.31, allocations: 0 / 0.5257 GB, free: 31.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.991e-05/0.3101, allocations: 17.62 kB / 0.5257 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.3101, allocations: 15.16 kB / 0.5257 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.3111, allocations: 0.4914 MB / 0.5262 GB, free: 30.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.314, allocations: 2.691 MB / 0.5289 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/0.315, allocations: 0.5691 MB / 0.5294 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.3155, allocations: 280.6 kB / 0.5297 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.791e-05/0.3155, allocations: 3.031 kB / 0.5297 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.3156, allocations: 45.38 kB / 0.5297 GB, free: 28.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.3156, allocations: 0 / 0.5297 GB, free: 28.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.002101/0.3177, allocations: 1.211 MB / 0.5309 GB, free: 28.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3177, allocations: 138.3 kB / 0.531 GB, free: 28.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.3185, allocations: 0.6508 MB / 0.5317 GB, free: 27.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.3185, allocations: 33.7 kB / 0.5317 GB, free: 27.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.3187, allocations: 365.5 kB / 0.5321 GB, free: 27.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.3188, allocations: 170 kB / 0.5322 GB, free: 27.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.3189, allocations: 8 kB / 0.5322 GB, free: 27.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.175e-05/0.3189, allocations: 334.7 kB / 0.5325 GB, free: 26.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/0.3195, allocations: 287.6 kB / 0.5328 GB, free: 26.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006057/0.3201, allocations: 445.1 kB / 0.5332 GB, free: 26.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.3212, allocations: 0.7177 MB / 0.5339 GB, free: 26.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3212, allocations: 2.031 kB / 0.5339 GB, free: 26.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001458/0.3227, allocations: 0.836 MB / 0.5348 GB, free: 25.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.3228, allocations: 224.2 kB / 0.535 GB, free: 25.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3228, allocations: 2.625 kB / 0.535 GB, free: 25.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3228, allocations: 11.81 kB / 0.535 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.3235, allocations: 161.8 kB / 0.5351 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3235, allocations: 11.81 kB / 0.5352 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.3239, allocations: 89.56 kB / 0.5352 GB, free: 25.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.324, allocations: 26.38 kB / 0.5353 GB, free: 25.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-06/0.324, allocations: 5.25 kB / 0.5353 GB, free: 25.61 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/0.3252, allocations: 0.7148 MB / 0.536 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3252, allocations: 13.78 kB / 0.536 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.3253, allocations: 7.969 kB / 0.536 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.3258, allocations: 149.7 kB / 0.5361 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3258, allocations: 13 kB / 0.5361 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004368/0.3263, allocations: 86.19 kB / 0.5362 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.3263, allocations: 26.84 kB / 0.5362 GB, free: 25.31 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 (77): * Single equations (assignments): 77 * 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 prepare postOptimizeDAE: time 0.0002687/0.3266, allocations: 290 kB / 0.5365 GB, free: 25.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.3267, allocations: 74.45 kB / 0.5366 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001491/0.3269, allocations: 89.36 kB / 0.5367 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3269, allocations: 5.438 kB / 0.5367 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.3269, allocations: 0 / 0.5367 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3269, allocations: 5.953 kB / 0.5367 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.328, allocations: 0.8639 MB / 0.5375 GB, free: 24.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.328, allocations: 0 / 0.5375 GB, free: 24.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005976/0.3286, allocations: 112.1 kB / 0.5376 GB, free: 24.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3287, allocations: 6.656 kB / 0.5377 GB, free: 24.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.3287, allocations: 16.31 kB / 0.5377 GB, free: 24.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.3287, allocations: 6.812 kB / 0.5377 GB, free: 24.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3287, allocations: 2.812 kB / 0.5377 GB, free: 24.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.3305, allocations: 1.201 MB / 0.5388 GB, free: 23.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.3308, allocations: 192.8 kB / 0.539 GB, free: 23.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.118e-05/0.3308, allocations: 14.09 kB / 0.539 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.3313, allocations: 67.42 kB / 0.5391 GB, free: 23.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3315, allocations: 39.72 kB / 0.5391 GB, free: 23.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.3315, allocations: 8.406 kB / 0.5392 GB, free: 23.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006204/0.3321, allocations: 456.6 kB / 0.5396 GB, free: 23.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3321, allocations: 4 kB / 0.5396 GB, free: 23.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000757/0.3329, allocations: 190.6 kB / 0.5398 GB, free: 23.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (44): * Single equations (assignments): 44 * 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.0001382/0.3331, allocations: 118.2 kB / 0.5399 GB, free: 23.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.3351, allocations: 1.011 MB / 0.5409 GB, free: 23.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3352, allocations: 1.219 kB / 0.5409 GB, free: 23.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000618/0.3358, allocations: 305.4 kB / 0.5412 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.3368, allocations: 172.5 kB / 0.5413 GB, free: 22.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.3394, allocations: 1.752 MB / 0.543 GB, free: 21.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.3398, allocations: 0.9473 MB / 0.544 GB, free: 21.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.34, allocations: 57.8 kB / 0.544 GB, free: 21.19 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.34, allocations: 0 / 0.544 GB, free: 21.19 MB / 378.7 MB Notification: Performance of Templates: time 0.01409/0.3541, allocations: 8.612 MB / 0.5524 GB, free: 18.29 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches