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: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 195.8 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.634/1.634, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001533/0.001533, allocations: 91.69 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3119/0.3119, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002424, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.266, allocations: 62.97 MB / 0.516 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.002328/0.2684, allocations: 2.809 MB / 0.5187 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.2703, allocations: 1.51 MB / 0.5202 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.2705, allocations: 17.28 kB / 0.5202 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003789/0.2709, allocations: 107.4 kB / 0.5203 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.2713, allocations: 151.3 kB / 0.5204 GB, free: 33.72 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007733/0.272, allocations: 429.1 kB / 0.5208 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000603/0.2727, allocations: 0.7831 MB / 0.5216 GB, free: 33.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.2729, allocations: 226.9 kB / 0.5218 GB, free: 33.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.2733, allocations: 290.4 kB / 0.5221 GB, free: 32.92 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.2736, allocations: 321.7 kB / 0.5224 GB, free: 32.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.213e-05/0.2736, allocations: 19.53 kB / 0.5224 GB, free: 32.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.906e-05/0.2737, allocations: 24.19 kB / 0.5225 GB, free: 32.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.2738, allocations: 156.5 kB / 0.5226 GB, free: 32.72 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.274, allocations: 290.5 kB / 0.5229 GB, free: 32.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.2744, allocations: 0.5433 MB / 0.5234 GB, free: 32.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2744, allocations: 0 / 0.5234 GB, free: 32.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2744, allocations: 0 / 0.5234 GB, free: 32.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2744, allocations: 0 / 0.5234 GB, free: 32.37 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.001648/0.276, allocations: 1.047 MB / 0.5244 GB, free: 31.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2761, allocations: 10.78 kB / 0.5244 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.2e-05/0.2762, allocations: 82.5 kB / 0.5245 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.2764, allocations: 105.6 kB / 0.5246 GB, free: 31.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006649/0.277, allocations: 0.5602 MB / 0.5252 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.2771, allocations: 36.38 kB / 0.5252 GB, free: 31.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.166e-05/0.2771, allocations: 58.06 kB / 0.5253 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00091/0.2781, allocations: 0.6221 MB / 0.5259 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2781, allocations: 6.719 kB / 0.5259 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.2781, allocations: 25.05 kB / 0.5259 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.2782, allocations: 10.59 kB / 0.5259 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009262/0.2791, allocations: 498.5 kB / 0.5264 GB, free: 30.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002719/0.2818, allocations: 2.704 MB / 0.529 GB, free: 28.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009168/0.2827, allocations: 0.5692 MB / 0.5296 GB, free: 28.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.2832, allocations: 279 kB / 0.5298 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.416e-05/0.2833, allocations: 3.125 kB / 0.5298 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2833, allocations: 48 kB / 0.5299 GB, free: 28.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.2833, allocations: 0 / 0.5299 GB, free: 28.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.002116/0.2854, allocations: 1.2 MB / 0.5311 GB, free: 27.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.2855, allocations: 138.5 kB / 0.5312 GB, free: 27.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/0.2861, allocations: 0.6506 MB / 0.5318 GB, free: 27.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.2862, allocations: 33.7 kB / 0.5319 GB, free: 27.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.2863, allocations: 365.6 kB / 0.5322 GB, free: 27.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.2864, allocations: 172.4 kB / 0.5324 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.2865, allocations: 12 kB / 0.5324 GB, free: 26.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.2865, allocations: 333.3 kB / 0.5327 GB, free: 26.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.2871, allocations: 286.7 kB / 0.533 GB, free: 26.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005936/0.2877, allocations: 447.9 kB / 0.5334 GB, free: 26.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.2888, allocations: 0.7138 MB / 0.5341 GB, free: 25.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2888, allocations: 2.719 kB / 0.5341 GB, free: 25.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001363/0.2902, allocations: 0.8365 MB / 0.5349 GB, free: 25.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-05/0.2903, allocations: 220.5 kB / 0.5351 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2903, allocations: 6.688 kB / 0.5351 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2903, allocations: 11.81 kB / 0.5352 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/0.2909, allocations: 160.3 kB / 0.5353 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.2909, allocations: 9.781 kB / 0.5353 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.2914, allocations: 88.95 kB / 0.5354 GB, free: 25.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.2915, allocations: 26.88 kB / 0.5354 GB, free: 25.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.662e-06/0.2915, allocations: 6.156 kB / 0.5354 GB, free: 25.31 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001209/0.2927, allocations: 0.7113 MB / 0.5361 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2927, allocations: 5.25 kB / 0.5361 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.242e-06/0.2927, allocations: 11.91 kB / 0.5361 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005436/0.2933, allocations: 154.9 kB / 0.5363 GB, free: 25.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2933, allocations: 7.875 kB / 0.5363 GB, free: 25.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.2937, allocations: 94.72 kB / 0.5364 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.2938, allocations: 25 kB / 0.5364 GB, free: 25.02 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.0002065/0.294, allocations: 288.2 kB / 0.5367 GB, free: 24.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.2941, allocations: 71.91 kB / 0.5368 GB, free: 24.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.2942, allocations: 95.39 kB / 0.5368 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2943, allocations: 9.188 kB / 0.5369 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2943, allocations: 6.562 kB / 0.5369 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2943, allocations: 3.375 kB / 0.5369 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009753/0.2953, allocations: 0.8574 MB / 0.5377 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2953, allocations: 4 kB / 0.5377 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.2959, allocations: 115.1 kB / 0.5378 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2959, allocations: 0 / 0.5378 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.2959, allocations: 19.47 kB / 0.5378 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2959, allocations: 3.938 kB / 0.5378 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.296, allocations: 10.5 kB / 0.5378 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.2978, allocations: 1.197 MB / 0.539 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.298, allocations: 193.6 kB / 0.5392 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.873e-05/0.298, allocations: 14.62 kB / 0.5392 GB, free: 23.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/0.2986, allocations: 72.36 kB / 0.5393 GB, free: 23.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.2987, allocations: 36.28 kB / 0.5393 GB, free: 23.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.2987, allocations: 15.8 kB / 0.5393 GB, free: 23.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005391/0.2993, allocations: 450.7 kB / 0.5398 GB, free: 23.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2993, allocations: 1.656 kB / 0.5398 GB, free: 23.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006738/0.3, allocations: 194.3 kB / 0.54 GB, free: 23.13 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.00203/0.302, allocations: 1.754 MB / 0.5417 GB, free: 22.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.3041, allocations: 1.016 MB / 0.5427 GB, free: 21.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3041, allocations: 0 / 0.5427 GB, free: 21.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.3047, allocations: 302 kB / 0.5429 GB, free: 21.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.3058, allocations: 171.6 kB / 0.5431 GB, free: 21.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.313, allocations: 4.91 MB / 0.5479 GB, free: 19.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.3134, allocations: 0.9548 MB / 0.5488 GB, free: 18.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.3137, allocations: 262.3 kB / 0.5491 GB, free: 18.25 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3137, allocations: 0 / 0.5491 GB, free: 18.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.087/3.4, allocations: 10.02 MB / 0.5589 GB, free: 12.59 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/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