Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008435/0.0008437, allocations: 96.83 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000899/0.000899, allocations: 168.5 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1587/0.1587, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 11.98 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08247, allocations: 61.94 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.003426/0.08593, allocations: 3.911 MB / 476.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.08777, allocations: 1.5 MB / 477.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002649/0.08805, allocations: 35.81 kB / 477.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.08829, allocations: 114.9 kB / 477.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003077/0.0886, allocations: 130.8 kB / 478 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.08945, allocations: 0.5311 MB / 478.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007481/0.09021, allocations: 0.9565 MB / 479.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004811/0.0907, allocations: 419.1 kB / 479.9 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.09091, allocations: 262.3 kB / 480.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.09116, allocations: 301.7 kB / 480.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.679e-05/0.09123, allocations: 23.98 kB / 480.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.887e-05/0.09128, allocations: 20 kB / 480.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.74e-05/0.09137, allocations: 119.2 kB / 480.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.09161, allocations: 379 kB / 481 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005832/0.0922, allocations: 0.8871 MB / 481.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.09221, allocations: 8 kB / 481.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.09222, allocations: 3.984 kB / 481.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.09223, allocations: 0 / 481.9 MB, free: 3.625 MB / 350.1 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.001483/0.09372, allocations: 1.129 MB / 483.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.09376, allocations: 8.031 kB / 483.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.09386, allocations: 110.7 kB / 483.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.09399, allocations: 115.5 kB / 483.3 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006572/0.09465, allocations: 0.6241 MB / 483.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.09469, allocations: 49.69 kB / 484 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.562e-05/0.09478, allocations: 64.38 kB / 484 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.0959, allocations: 0.7764 MB / 484.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.09593, allocations: 4 kB / 484.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/0.09599, allocations: 27.94 kB / 484.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.09601, allocations: 16 kB / 484.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.09713, allocations: 0.5894 MB / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002748/0.09989, allocations: 2.749 MB / 488.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.1012, allocations: 0.7178 MB / 488.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005214/0.1017, allocations: 315.3 kB / 489.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.1017, allocations: 8 kB / 489.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1018, allocations: 42.56 kB / 489.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.473e-06/0.1018, allocations: 0 / 489.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001667/0.1035, allocations: 0.8688 MB / 490.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.1036, allocations: 239.3 kB / 490.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006447/0.1042, allocations: 0.6968 MB / 491.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.1043, allocations: 37.7 kB / 491.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.1045, allocations: 440.3 kB / 491.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1046, allocations: 185.4 kB / 491.7 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.331e-05/0.1047, allocations: 53.69 kB / 491.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.331e-05/0.1048, allocations: 326 kB / 492.1 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004962/0.1053, allocations: 252.9 kB / 492.3 MB, free: 8.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000565/0.1059, allocations: 388 kB / 492.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.1069, allocations: 0.6062 MB / 493.3 MB, free: 7.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1069, allocations: 3.938 kB / 493.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002483/0.1094, allocations: 1.166 MB / 494.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.216e-05/0.1095, allocations: 179.3 kB / 494.7 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1095, allocations: 4 kB / 494.7 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.1106, allocations: 347.2 kB / 495 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/0.1111, allocations: 127.8 kB / 495.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007456/0.1186, allocations: 7.076 MB / 0.4904 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.119, allocations: 91.39 kB / 0.4905 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.119, allocations: 23.98 kB / 0.4905 GB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.703e-06/0.119, allocations: 8.062 kB / 0.4905 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001275/0.1203, allocations: 0.6759 MB / 0.4912 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1203, allocations: 7.938 kB / 0.4912 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/0.1207, allocations: 150.1 kB / 0.4914 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006582/0.1214, allocations: 179.8 kB / 0.4915 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.1243, allocations: 3.268 MB / 0.4947 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.1246, allocations: 71.41 kB / 0.4948 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.1247, allocations: 24.06 kB / 0.4948 GB, free: 9.488 MB / 382.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.125, allocations: 288.9 kB / 0.4951 GB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.1251, allocations: 94.81 kB / 0.4952 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.1253, allocations: 99.16 kB / 0.4953 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1253, allocations: 7.984 kB / 0.4953 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1253, allocations: 4 kB / 0.4953 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.1253, allocations: 3.984 kB / 0.4953 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000822/0.1261, allocations: 0.735 MB / 0.496 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1261, allocations: 0 / 0.496 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.1267, allocations: 115.9 kB / 0.4961 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1267, allocations: 11.92 kB / 0.4961 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.1267, allocations: 12 kB / 0.4961 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1267, allocations: 8 kB / 0.4961 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1267, allocations: 3.938 kB / 0.4961 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.1284, allocations: 1.272 MB / 0.4974 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.1286, allocations: 219.7 kB / 0.4976 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/0.1287, allocations: 12 kB / 0.4976 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/0.1292, allocations: 51.97 kB / 0.4977 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.1293, allocations: 35.95 kB / 0.4977 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.1293, allocations: 19.98 kB / 0.4977 GB, free: 6.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004472/0.1297, allocations: 483 kB / 0.4982 GB, free: 5.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1297, allocations: 4 kB / 0.4982 GB, free: 5.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007466/0.1305, allocations: 275.1 kB / 0.4984 GB, free: 5.672 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001938/0.1324, allocations: 1.84 MB / 0.5002 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.136, allocations: 2.029 MB / 0.5022 GB, free: 1.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.136, allocations: 0 / 0.5022 GB, free: 1.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005408/0.1366, allocations: 303.7 kB / 0.5025 GB, free: 1.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.1378, allocations: 229.4 kB / 0.5027 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1596/0.2974, allocations: 8.157 MB / 0.5107 GB, free: 43.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.2979, allocations: 0.9824 MB / 0.5116 GB, free: 42.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003674/0.2983, allocations: 95.22 kB / 0.5117 GB, free: 42.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.2986, allocations: 325.3 kB / 0.5121 GB, free: 42.96 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2986, allocations: 0 / 0.5121 GB, free: 42.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.947/4.246, allocations: 18.9 MB / 0.5305 GB, free: 34.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/4.246, allocations: 211.6 kB / 0.5307 GB, free: 33.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/7.031, allocations: 0 / 0.5307 GB, free: 33.84 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches