Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.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.LimPID,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009444/0.0009445, allocations: 200 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.228/1.228, allocations: 226.5 MB / 243.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007025/0.0007024, allocations: 95.97 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2723/0.2723, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2671, allocations: 62.96 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.002907/0.2701, allocations: 3.667 MB / 0.5195 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.2721, allocations: 1.512 MB / 0.521 GB, free: 33.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004095/0.2725, allocations: 33 kB / 0.521 GB, free: 33.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002422/0.2728, allocations: 106.7 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002588/0.273, allocations: 118.6 kB / 0.5213 GB, free: 33.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008311/0.2739, allocations: 442.6 kB / 0.5217 GB, free: 32.87 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006647/0.2746, allocations: 0.902 MB / 0.5226 GB, free: 32.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004526/0.275, allocations: 425.1 kB / 0.523 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.2752, allocations: 250.4 kB / 0.5232 GB, free: 32.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.2754, allocations: 283.1 kB / 0.5235 GB, free: 31.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.2755, allocations: 22.12 kB / 0.5235 GB, free: 31.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.2755, allocations: 25.19 kB / 0.5235 GB, free: 31.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.33e-05/0.2756, allocations: 110.1 kB / 0.5236 GB, free: 31.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.2758, allocations: 351.5 kB / 0.524 GB, free: 31.56 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003882/0.2762, allocations: 0.6981 MB / 0.5246 GB, free: 31.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.2762, allocations: 0 / 0.5246 GB, free: 31.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2762, allocations: 0 / 0.5246 GB, free: 31.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.2762, allocations: 2.562 kB / 0.5246 GB, free: 31.38 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001371/0.2776, allocations: 1.14 MB / 0.5258 GB, free: 30.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2776, allocations: 12.97 kB / 0.5258 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.374e-05/0.2777, allocations: 104.3 kB / 0.5259 GB, free: 30.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.2779, allocations: 115.5 kB / 0.526 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/0.2784, allocations: 0.6197 MB / 0.5266 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.2785, allocations: 48 kB / 0.5266 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-05/0.2785, allocations: 66.78 kB / 0.5267 GB, free: 29.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.2796, allocations: 0.7629 MB / 0.5274 GB, free: 29.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.2796, allocations: 2.5 kB / 0.5274 GB, free: 29.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.2797, allocations: 25.5 kB / 0.5275 GB, free: 29.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.2797, allocations: 15.72 kB / 0.5275 GB, free: 29.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.2808, allocations: 0.5947 MB / 0.5281 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/0.2833, allocations: 2.749 MB / 0.5307 GB, free: 27.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2846, allocations: 0.7205 MB / 0.5314 GB, free: 27.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004916/0.2851, allocations: 302.5 kB / 0.5317 GB, free: 27.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-05/0.2852, allocations: 8.734 kB / 0.5317 GB, free: 27.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.2852, allocations: 45.5 kB / 0.5318 GB, free: 26.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.154e-06/0.2852, allocations: 0 / 0.5318 GB, free: 26.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.00168/0.2869, allocations: 0.8607 MB / 0.5326 GB, free: 26.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.2869, allocations: 242.7 kB / 0.5329 GB, free: 26.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.2876, allocations: 0.6982 MB / 0.5335 GB, free: 26.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.2876, allocations: 36.55 kB / 0.5336 GB, free: 26.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.2878, allocations: 432.9 kB / 0.534 GB, free: 25.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.211e-05/0.2879, allocations: 178.9 kB / 0.5342 GB, free: 25.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.2879, allocations: 10.81 kB / 0.5342 GB, free: 25.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.188e-05/0.288, allocations: 326.7 kB / 0.5345 GB, free: 25.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.2885, allocations: 249.7 kB / 0.5347 GB, free: 25.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.289, allocations: 389.4 kB / 0.5351 GB, free: 24.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009553/0.29, allocations: 0.5983 MB / 0.5357 GB, free: 24.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.29, allocations: 6.562 kB / 0.5357 GB, free: 24.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002371/0.2924, allocations: 1.161 MB / 0.5368 GB, free: 24.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.869e-05/0.2925, allocations: 164 kB / 0.537 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2925, allocations: 2.375 kB / 0.537 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.2936, allocations: 368 kB / 0.5373 GB, free: 23.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000501/0.2941, allocations: 142.4 kB / 0.5375 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006774/0.3009, allocations: 7.068 MB / 0.5444 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.3015, allocations: 92.67 kB / 0.5445 GB, free: 18.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.3015, allocations: 19.5 kB / 0.5445 GB, free: 18.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.485e-06/0.3015, allocations: 3.844 kB / 0.5445 GB, free: 18.03 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001388/0.3029, allocations: 0.6705 MB / 0.5451 GB, free: 17.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.303, allocations: 3.688 kB / 0.5451 GB, free: 17.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004795/0.3034, allocations: 153.1 kB / 0.5453 GB, free: 17.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006994/0.3042, allocations: 171.2 kB / 0.5454 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/0.3068, allocations: 3.271 MB / 0.5486 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.3073, allocations: 75.73 kB / 0.5487 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.3074, allocations: 23.09 kB / 0.5487 GB, free: 14.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.3077, allocations: 288.2 kB / 0.549 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.3079, allocations: 94.19 kB / 0.5491 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.308, allocations: 99.3 kB / 0.5492 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.308, allocations: 6.594 kB / 0.5492 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.3081, allocations: 2.031 kB / 0.5492 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.3081, allocations: 2.938 kB / 0.5492 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009671/0.309, allocations: 0.736 MB / 0.5499 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3091, allocations: 2.062 kB / 0.5499 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.3096, allocations: 121.7 kB / 0.55 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.3096, allocations: 10.44 kB / 0.55 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.3097, allocations: 9.719 kB / 0.5501 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3097, allocations: 2.031 kB / 0.5501 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3097, allocations: 1.891 kB / 0.5501 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.3114, allocations: 1.276 MB / 0.5513 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.3116, allocations: 217.5 kB / 0.5515 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.859e-05/0.3117, allocations: 12.12 kB / 0.5515 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004687/0.3122, allocations: 57.34 kB / 0.5516 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.3123, allocations: 34.59 kB / 0.5516 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.3124, allocations: 18.97 kB / 0.5516 GB, free: 13.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005124/0.3129, allocations: 481.4 kB / 0.5521 GB, free: 12.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3129, allocations: 0 / 0.5521 GB, free: 12.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008904/0.3138, allocations: 273.1 kB / 0.5524 GB, free: 12.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001947/0.3157, allocations: 1.838 MB / 0.5541 GB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003861/0.3196, allocations: 2.017 MB / 0.5561 GB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.3196, allocations: 5.281 kB / 0.5561 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.3202, allocations: 305.5 kB / 0.5564 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3215, allocations: 202.5 kB / 0.5566 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008628/0.3302, allocations: 5.365 MB / 0.5618 GB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.3307, allocations: 0.9846 MB / 0.5628 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.3311, allocations: 321.3 kB / 0.5631 GB, free: 6.621 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.3311, allocations: 1.125 kB / 0.5631 GB, free: 6.621 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.858/4.19, allocations: 18.87 MB / 0.5815 GB, free: 4.391 MB / 394.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches