Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.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) 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(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",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.001166/0.001166, allocations: 102.9 kB / 16.5 MB, free: 6.648 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.001335/0.001335, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.363/1.363, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 42.59 kB / 300 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09765, allocations: 49.46 MB / 349.5 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004539/0.1022, allocations: 3.144 MB / 352.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.1041, allocations: 0.9427 MB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004155/0.1045, allocations: 19.88 kB / 353.6 MB, free: 432 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004037/0.1049, allocations: 67.44 kB / 353.7 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003576/0.1053, allocations: 91.31 kB / 353.8 MB, free: 272 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006027/0.106, allocations: 201.4 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006215/0.1066, allocations: 499 kB / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.1069, allocations: 149.3 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.1072, allocations: 183.1 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.1075, allocations: 187 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.264e-05/0.1076, allocations: 24 kB / 355 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-05/0.1076, allocations: 20 kB / 355 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.1077, allocations: 91.59 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.1079, allocations: 198.8 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.1083, allocations: 458.5 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1083, allocations: 4 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1084, allocations: 4 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.1084, allocations: 3.938 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001378/0.1098, allocations: 0.7638 MB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1098, allocations: 16.02 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.371e-05/0.1099, allocations: 74.72 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.053e-05/0.11, allocations: 52.38 kB / 356.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.1105, allocations: 359.7 kB / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.1105, allocations: 29.38 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.03e-05/0.1106, allocations: 39.94 kB / 357.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008912/0.1115, allocations: 442.4 kB / 357.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.1115, allocations: 7.891 kB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.749e-05/0.1115, allocations: 19.98 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.1116, allocations: 16 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009836/0.1126, allocations: 375.6 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1148, allocations: 1.571 MB / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008183/0.1156, allocations: 318.6 kB / 359.8 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004279/0.1161, allocations: 168.7 kB / 360 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.1161, allocations: 4 kB / 360 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.1161, allocations: 38.5 kB / 360 MB, free: 9.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.934e-06/0.1161, allocations: 0 / 360 MB, free: 9.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003151/0.1193, allocations: 1.377 MB / 361.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.1194, allocations: 85.11 kB / 361.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.1197, allocations: 353.7 kB / 361.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.1198, allocations: 33.7 kB / 361.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1199, allocations: 239.9 kB / 362.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.477e-05/0.12, allocations: 114.5 kB / 362.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1202, allocations: 86.03 kB / 362.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1203, allocations: 350.7 kB / 362.6 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.1208, allocations: 174.5 kB / 362.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004889/0.1213, allocations: 252.8 kB / 363 MB, free: 6.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008605/0.1222, allocations: 387.5 kB / 363.4 MB, free: 6.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1222, allocations: 0 / 363.4 MB, free: 6.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001104/0.1233, allocations: 497 kB / 363.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1233, allocations: 4.219 kB / 363.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.1233, allocations: 8 kB / 363.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1233, allocations: 4 kB / 363.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008508/0.1242, allocations: 215.7 kB / 364.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.1257, allocations: 1.462 MB / 365.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.126, allocations: 39.98 kB / 365.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.1261, allocations: 16 kB / 365.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005143/0.1266, allocations: 272.9 kB / 365.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004528/0.127, allocations: 240.8 kB / 366.1 MB, free: 3.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007646/0.1278, allocations: 371.5 kB / 366.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.1278, allocations: 0 / 366.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000999/0.1288, allocations: 481.1 kB / 367 MB, free: 2.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.1289, allocations: 4 kB / 367 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1289, allocations: 4 kB / 367 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.813e-06/0.1289, allocations: 4 kB / 367 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.1294, allocations: 111.9 kB / 367.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1294, allocations: 11.88 kB / 367.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.1297, allocations: 44.11 kB / 367.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.1298, allocations: 12 kB / 367.1 MB, free: 2.211 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.1299, allocations: 196.2 kB / 367.3 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.985e-05/0.13, allocations: 43.44 kB / 367.4 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.102e-05/0.1301, allocations: 44.25 kB / 367.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1301, allocations: 7.938 kB / 367.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1301, allocations: 3.984 kB / 367.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1301, allocations: 4 kB / 367.4 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.1318, allocations: 0.915 MB / 368.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1318, allocations: 4 kB / 368.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.1322, allocations: 83.86 kB / 368.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.1322, allocations: 4 kB / 368.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.1323, allocations: 8 kB / 368.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1323, allocations: 0 / 368.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1323, allocations: 12.06 kB / 368.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.1336, allocations: 0.666 MB / 369.1 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1908/0.3245, allocations: 129.5 kB / 369.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.3247, allocations: 6.75 kB / 369.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.3251, allocations: 39.86 kB / 369.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3253, allocations: 27.64 kB / 369.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.3253, allocations: 10.91 kB / 369.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004231/0.3257, allocations: 248.8 kB / 369.6 MB, free: 25.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3258, allocations: 1.438 kB / 369.6 MB, free: 25.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007928/0.3266, allocations: 135 kB / 369.7 MB, free: 25.35 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.002053/0.3286, allocations: 1.214 MB / 370.9 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.3311, allocations: 0.6975 MB / 371.6 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.3311, allocations: 0.625 kB / 371.6 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.3316, allocations: 175.7 kB / 371.8 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008826/0.3325, allocations: 92.2 kB / 371.9 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00742/0.34, allocations: 4.189 MB / 376.1 MB, free: 22.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.3404, allocations: 0.8164 MB / 376.9 MB, free: 21.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004034/0.3409, allocations: 65.23 kB / 377 MB, free: 21.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.3411, allocations: 141.6 kB / 377.1 MB, free: 21.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3411, allocations: 0 / 377.1 MB, free: 21.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02925/0.3704, allocations: 8.125 MB / 385.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.3706, allocations: 225.3 kB / 385.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.325, allocations: 0 / 385.4 MB, free: 19.11 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches