Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008782/0.0008782, allocations: 173.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.163/1.163, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000732/0.0007321, allocations: 85.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2688/0.2688, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 12 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08904/0.08935, allocations: 58.84 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.003506/0.0929, allocations: 3.719 MB / 494.6 MB, free: 6.824 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.09484, allocations: 1.528 MB / 496.2 MB, free: 5.285 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.09514, allocations: 35.81 kB / 496.2 MB, free: 5.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.09537, allocations: 106.9 kB / 496.3 MB, free: 5.145 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.09566, allocations: 134.8 kB / 496.4 MB, free: 5.012 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.09647, allocations: 439.3 kB / 496.9 MB, free: 4.582 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000777/0.09725, allocations: 0.9215 MB / 497.8 MB, free: 3.656 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004888/0.09775, allocations: 423.1 kB / 498.2 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.09798, allocations: 262.4 kB / 498.5 MB, free: 2.965 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.09822, allocations: 286 kB / 498.7 MB, free: 2.684 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.09829, allocations: 24 kB / 498.8 MB, free: 2.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.09835, allocations: 24 kB / 498.8 MB, free: 2.637 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.347e-05/0.09845, allocations: 111.3 kB / 498.9 MB, free: 2.527 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002281/0.09869, allocations: 359.3 kB / 499.2 MB, free: 2.168 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.0992, allocations: 0.7173 MB / 500 MB, free: 1.449 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09922, allocations: 0 / 500 MB, free: 1.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09922, allocations: 3.938 kB / 500 MB, free: 1.445 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.09924, allocations: 0 / 500 MB, free: 1.445 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.001522/0.1008, allocations: 1.16 MB / 0.4894 GB, free: 240 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1008, allocations: 8.031 kB / 0.4894 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.921e-05/0.1009, allocations: 106.7 kB / 0.4895 GB, free: 116 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.101, allocations: 115.5 kB / 0.4896 GB, free: 0 / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1716/0.2726, allocations: 0.6356 MB / 0.4902 GB, free: 42.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.27e-05/0.2727, allocations: 51 kB / 0.4903 GB, free: 42.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.2729, allocations: 63.91 kB / 0.4903 GB, free: 42.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.2743, allocations: 0.7582 MB / 0.4911 GB, free: 42.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2744, allocations: 2.016 kB / 0.4911 GB, free: 42.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.843e-05/0.2744, allocations: 25.75 kB / 0.4911 GB, free: 42.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.2744, allocations: 16.72 kB / 0.4911 GB, free: 42.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.2758, allocations: 0.604 MB / 0.4917 GB, free: 42.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.2794, allocations: 2.75 MB / 0.4944 GB, free: 40.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.2809, allocations: 0.7224 MB / 0.4951 GB, free: 40.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005971/0.2815, allocations: 309.4 kB / 0.4954 GB, free: 40.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.302e-05/0.2815, allocations: 7.797 kB / 0.4954 GB, free: 40.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.2816, allocations: 47.23 kB / 0.4954 GB, free: 40.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 3.336e-06/0.2816, allocations: 1.078 kB / 0.4954 GB, free: 40.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001878/0.2835, allocations: 0.8703 MB / 0.4963 GB, free: 40.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.2836, allocations: 243 kB / 0.4965 GB, free: 40.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009716/0.2845, allocations: 0.7037 MB / 0.4972 GB, free: 40.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.986e-05/0.2846, allocations: 39.67 kB / 0.4972 GB, free: 39.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.2849, allocations: 444.2 kB / 0.4977 GB, free: 39.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.285, allocations: 186.4 kB / 0.4978 GB, free: 39.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.2851, allocations: 11.28 kB / 0.4979 GB, free: 39.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.126e-05/0.2851, allocations: 325.6 kB / 0.4982 GB, free: 39.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005328/0.2857, allocations: 242.8 kB / 0.4984 GB, free: 39.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000621/0.2863, allocations: 392.9 kB / 0.4988 GB, free: 39.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009969/0.2873, allocations: 0.5991 MB / 0.4994 GB, free: 38.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2873, allocations: 0 / 0.4994 GB, free: 38.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002445/0.2898, allocations: 1.159 MB / 0.5005 GB, free: 38.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.571e-05/0.2899, allocations: 172.1 kB / 0.5007 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.2899, allocations: 6.688 kB / 0.5007 GB, free: 38.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.291, allocations: 371.7 kB / 0.501 GB, free: 38.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.2915, allocations: 126.4 kB / 0.5011 GB, free: 38.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006882/0.2984, allocations: 7.063 MB / 0.508 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.2989, allocations: 98.67 kB / 0.5081 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.299, allocations: 20.5 kB / 0.5081 GB, free: 32.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.756e-06/0.299, allocations: 4.5 kB / 0.5082 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001345/0.3003, allocations: 0.679 MB / 0.5088 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3003, allocations: 2.281 kB / 0.5088 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000422/0.3008, allocations: 149.6 kB / 0.509 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006307/0.3014, allocations: 177.1 kB / 0.5091 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.3039, allocations: 3.272 MB / 0.5123 GB, free: 29.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.3044, allocations: 68.91 kB / 0.5124 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.3044, allocations: 24.12 kB / 0.5124 GB, free: 29.18 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.0003298/0.3047, allocations: 288.4 kB / 0.5127 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.3049, allocations: 95.91 kB / 0.5128 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.3051, allocations: 96.45 kB / 0.5129 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3051, allocations: 6.625 kB / 0.5129 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3051, allocations: 3.953 kB / 0.5129 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3051, allocations: 7.125 kB / 0.5129 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009911/0.3061, allocations: 0.7399 MB / 0.5136 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3061, allocations: 0 / 0.5136 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.3067, allocations: 124.2 kB / 0.5137 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3067, allocations: 6.922 kB / 0.5137 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.3067, allocations: 14.27 kB / 0.5137 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3067, allocations: 2.75 kB / 0.5138 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3067, allocations: 3.125 kB / 0.5138 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.3083, allocations: 1.279 MB / 0.515 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.3085, allocations: 214.6 kB / 0.5152 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.399e-05/0.3086, allocations: 15.16 kB / 0.5152 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004585/0.3091, allocations: 54.25 kB / 0.5153 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.3092, allocations: 38.64 kB / 0.5153 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.3092, allocations: 16.67 kB / 0.5153 GB, free: 27.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004551/0.3097, allocations: 488.9 kB / 0.5158 GB, free: 27.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3097, allocations: 0 / 0.5158 GB, free: 27.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008411/0.3105, allocations: 277.3 kB / 0.5161 GB, free: 27.2 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.001752/0.3123, allocations: 1.847 MB / 0.5179 GB, free: 25.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003374/0.3157, allocations: 2.015 MB / 0.5198 GB, free: 24.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3157, allocations: 0 / 0.5198 GB, free: 24.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.3162, allocations: 305.6 kB / 0.5201 GB, free: 24.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.3175, allocations: 212.7 kB / 0.5203 GB, free: 24.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007442/0.325, allocations: 5.467 MB / 0.5257 GB, free: 21.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.3253, allocations: 0.9895 MB / 0.5266 GB, free: 21.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.3257, allocations: 328.1 kB / 0.5269 GB, free: 20.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3257, allocations: 3.594 kB / 0.5269 GB, free: 20.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.443/3.769, allocations: 19.29 MB / 0.5458 GB, free: 15.51 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches