Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00124/0.00124, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 64.53 kB / 306.3 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09741, allocations: 50.54 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004512/0.102, allocations: 3.144 MB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1038, allocations: 0.9817 MB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000344/0.1042, allocations: 15.88 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003604/0.1046, allocations: 59.5 kB / 361.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003121/0.1049, allocations: 83.39 kB / 361.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.1055, allocations: 203.7 kB / 361.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005674/0.1061, allocations: 495 kB / 361.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.1064, allocations: 165.2 kB / 362 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.1067, allocations: 175.2 kB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.107, allocations: 194.9 kB / 362.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/0.107, allocations: 24 kB / 362.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.1071, allocations: 20 kB / 362.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1072, allocations: 87.67 kB / 362.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.1075, allocations: 194.8 kB / 362.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1079, allocations: 466.5 kB / 363.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1079, allocations: 0 / 363.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.62e-07/0.1079, allocations: 4 kB / 363.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1079, allocations: 0 / 363.1 MB, free: 7.891 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.001321/0.1092, allocations: 0.7661 MB / 363.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1093, allocations: 8.031 kB / 363.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.869e-05/0.1094, allocations: 74.72 kB / 364 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.695e-05/0.1095, allocations: 52.38 kB / 364 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.1099, allocations: 355.7 kB / 364.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.11, allocations: 29.38 kB / 364.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.1101, allocations: 36.38 kB / 364.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009206/0.111, allocations: 467.3 kB / 364.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.111, allocations: 3.906 kB / 364.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.1111, allocations: 19.94 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1111, allocations: 15.98 kB / 365 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009695/0.1121, allocations: 379.6 kB / 365.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1142, allocations: 1.567 MB / 366.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007927/0.115, allocations: 319.3 kB / 367.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004098/0.1154, allocations: 168.7 kB / 367.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.1154, allocations: 0 / 367.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.1155, allocations: 42.56 kB / 367.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.545e-06/0.1155, allocations: 0 / 367.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003038/0.1185, allocations: 1.381 MB / 368.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.1186, allocations: 106.8 kB / 368.9 MB, free: 1.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.119, allocations: 357.6 kB / 369.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.119, allocations: 29.7 kB / 369.3 MB, free: 1.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1192, allocations: 243.9 kB / 369.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.631e-05/0.1193, allocations: 114.5 kB / 369.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1194, allocations: 78.05 kB / 369.7 MB, free: 0.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1196, allocations: 358.7 kB / 370 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.1201, allocations: 174.5 kB / 370.2 MB, free: 432 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.1206, allocations: 261.6 kB / 370.5 MB, free: 136 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.183/0.3036, allocations: 386.6 kB / 370.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3037, allocations: 0.7188 kB / 370.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001146/0.3048, allocations: 485.2 kB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3048, allocations: 5.969 kB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.3049, allocations: 2.625 kB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.3049, allocations: 5.156 kB / 371.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008807/0.3058, allocations: 209.8 kB / 371.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.307, allocations: 1.472 MB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.3074, allocations: 40.16 kB / 373.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.3074, allocations: 15.33 kB / 373.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005218/0.308, allocations: 273.5 kB / 373.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004386/0.3084, allocations: 243 kB / 373.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007297/0.3092, allocations: 377.5 kB / 373.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.3092, allocations: 0.6562 kB / 373.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009474/0.3101, allocations: 472.5 kB / 374.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.3101, allocations: 5 kB / 374.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.3101, allocations: 4.531 kB / 374.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.292e-06/0.3102, allocations: 8.891 kB / 374.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.3107, allocations: 117 kB / 374.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3107, allocations: 8.75 kB / 374.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.311, allocations: 37.45 kB / 374.6 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.3111, allocations: 15.38 kB / 374.6 MB, free: 18.3 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.0001298/0.3112, allocations: 210.3 kB / 374.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.3113, allocations: 47.33 kB / 374.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.63e-05/0.3114, allocations: 46.47 kB / 374.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3114, allocations: 8.641 kB / 374.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3114, allocations: 0.75 kB / 374.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3114, allocations: 1.266 kB / 374.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.3129, allocations: 0.9168 MB / 375.8 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3129, allocations: 1.375 kB / 375.8 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.3134, allocations: 87.14 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3134, allocations: 2.75 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.3134, allocations: 12.81 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3134, allocations: 1.375 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3134, allocations: 3.266 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.3147, allocations: 0.6732 MB / 376.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.3148, allocations: 133 kB / 376.7 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.3149, allocations: 13.31 kB / 376.7 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.3152, allocations: 32.25 kB / 376.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.3153, allocations: 24.48 kB / 376.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.3153, allocations: 7 kB / 376.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.3156, allocations: 256.7 kB / 377.1 MB, free: 16.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3156, allocations: 0 / 377.1 MB, free: 16.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005251/0.3161, allocations: 132.7 kB / 377.2 MB, free: 16.9 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.001496/0.3176, allocations: 1.218 MB / 378.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.3194, allocations: 0.6854 MB / 379.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3194, allocations: 5.281 kB / 379.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004303/0.3198, allocations: 183 kB / 379.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006662/0.3205, allocations: 92.59 kB / 379.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005816/0.3264, allocations: 4.195 MB / 383.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.3267, allocations: 0.8143 MB / 384.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002911/0.3269, allocations: 62.55 kB / 384.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.3272, allocations: 137 kB / 384.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3272, allocations: 1.219 kB / 384.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.3478, allocations: 8.107 MB / 392.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.348, allocations: 212.6 kB / 392.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.27, allocations: 3.281 kB / 392.9 MB, free: 9.277 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches