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.001352/0.001352, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001584/0.001584, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.343/1.343, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 48.14 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08697, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004735/0.09175, allocations: 3.095 MB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002384/0.09416, allocations: 0.9699 MB / 354.2 MB, free: 248 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006994/0.09489, allocations: 11.94 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005993/0.0955, allocations: 83.19 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004151/0.09597, allocations: 107.1 kB / 354.4 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.0967, allocations: 238.6 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006489/0.09736, allocations: 0.5146 MB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/0.09771, allocations: 169.2 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.09801, allocations: 195.1 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.09832, allocations: 203 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.528e-05/0.09841, allocations: 40 kB / 355.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.339e-05/0.09849, allocations: 40 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.09861, allocations: 103.6 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.09884, allocations: 222.7 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.09933, allocations: 482.6 kB / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.09934, allocations: 4 kB / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09935, allocations: 0 / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.09937, allocations: 0 / 356.6 MB, free: 13.86 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.001402/0.1008, allocations: 0.7716 MB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1008, allocations: 15.91 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.022e-05/0.1009, allocations: 74.72 kB / 357.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.308e-05/0.101, allocations: 48.38 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.1015, allocations: 355.7 kB / 357.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.1015, allocations: 29.38 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-05/0.1016, allocations: 39.94 kB / 357.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008668/0.1025, allocations: 446.3 kB / 358.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.1025, allocations: 7.906 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.1025, allocations: 20 kB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.1026, allocations: 8 kB / 358.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009958/0.1036, allocations: 375.6 kB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.1057, allocations: 1.571 MB / 360.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.1065, allocations: 319.1 kB / 360.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.107, allocations: 164.8 kB / 360.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.107, allocations: 4 kB / 360.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1071, allocations: 42.5 kB / 360.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.1071, allocations: 0 / 360.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003314/0.1104, allocations: 1.388 MB / 362.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.1104, allocations: 81.11 kB / 362.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003754/0.1108, allocations: 357.7 kB / 362.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1109, allocations: 29.7 kB / 362.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.111, allocations: 244 kB / 362.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.993e-05/0.1111, allocations: 114.3 kB / 363 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.1113, allocations: 78.03 kB / 363.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.1115, allocations: 362.7 kB / 363.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.1119, allocations: 174.4 kB / 363.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005317/0.1125, allocations: 252.8 kB / 363.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009177/0.1134, allocations: 384 kB / 364.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.1134, allocations: 0 / 364.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001153/0.1146, allocations: 497 kB / 364.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.1146, allocations: 8 kB / 364.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1146, allocations: 3.984 kB / 364.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1147, allocations: 4 kB / 364.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008893/0.1156, allocations: 211.7 kB / 365 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.1173, allocations: 1.568 MB / 366.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.1176, allocations: 39.89 kB / 366.6 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.1177, allocations: 20.03 kB / 366.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005779/0.1183, allocations: 272.9 kB / 366.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004663/0.1187, allocations: 240.8 kB / 367.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008098/0.1195, allocations: 359.7 kB / 367.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.1196, allocations: 4 kB / 367.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001094/0.1207, allocations: 472.7 kB / 367.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.1207, allocations: 8 kB / 367.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1207, allocations: 4.156 kB / 367.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.763e-06/0.1207, allocations: 8 kB / 367.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.1212, allocations: 119.8 kB / 368 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1212, allocations: 11.92 kB / 368.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.1215, allocations: 35.97 kB / 368.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.1216, allocations: 12 kB / 368.1 MB, free: 1.676 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.0001457/0.1217, allocations: 204.2 kB / 368.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.1218, allocations: 39.47 kB / 368.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.607e-05/0.1219, allocations: 52.23 kB / 368.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1219, allocations: 4 kB / 368.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1219, allocations: 4 kB / 368.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.1219, allocations: 0 / 368.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.1236, allocations: 0.9168 MB / 369.3 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1237, allocations: 0 / 369.3 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.1241, allocations: 88.06 kB / 369.4 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.1241, allocations: 4 kB / 369.4 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1242, allocations: 4 kB / 369.4 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.1242, allocations: 7.938 kB / 369.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1242, allocations: 0 / 369.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1596/0.2838, allocations: 0.6668 MB / 370.1 MB, free: 25.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.2842, allocations: 132.8 kB / 370.2 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.2843, allocations: 12.69 kB / 370.2 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.2848, allocations: 32.23 kB / 370.3 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.2849, allocations: 27.58 kB / 370.3 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.285, allocations: 10.72 kB / 370.3 MB, free: 25.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004172/0.2854, allocations: 250.2 kB / 370.5 MB, free: 25.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2854, allocations: 0 / 370.5 MB, free: 25.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007787/0.2862, allocations: 134.4 kB / 370.7 MB, free: 25.23 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.001871/0.2881, allocations: 1.228 MB / 371.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.2904, allocations: 0.703 MB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.2904, allocations: 0.5 kB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.2909, allocations: 182.3 kB / 372.8 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007946/0.2918, allocations: 112.5 kB / 372.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006298/0.2981, allocations: 4.041 MB / 376.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.2984, allocations: 0.8204 MB / 377.8 MB, free: 21.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003224/0.2987, allocations: 65.92 kB / 377.8 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.2989, allocations: 138.6 kB / 378 MB, free: 21.39 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2989, allocations: 1.594 kB / 378 MB, free: 21.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03156/0.3305, allocations: 8.577 MB / 386.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.83, allocations: 9.656 kB / 386.5 MB, free: 18.86 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