Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_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.0008566/0.0008567, allocations: 100.9 kB / 17.31 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.0009299/0.0009299, allocations: 177.5 kB / 18.2 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.213/1.213, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004668/0.0004663, allocations: 16.2 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09144, allocations: 47.58 MB / 329 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003355/0.09484, allocations: 2.778 MB / 331.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.0966, allocations: 0.971 MB / 332.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.09683, allocations: 19.88 kB / 332.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.09714, allocations: 67.48 kB / 332.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002338/0.09739, allocations: 91.31 kB / 333 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/0.09789, allocations: 203.7 kB / 333.2 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005505/0.09845, allocations: 0.4989 MB / 333.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.09879, allocations: 153.5 kB / 333.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.09896, allocations: 155.2 kB / 334 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.09918, allocations: 171 kB / 334.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.09924, allocations: 19.94 kB / 334.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.002e-05/0.09929, allocations: 19.94 kB / 334.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.224e-05/0.09939, allocations: 75.69 kB / 334.2 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.09955, allocations: 212.5 kB / 334.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003592/0.09992, allocations: 438.2 kB / 334.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.09993, allocations: 3.984 kB / 334.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.09994, allocations: 0 / 334.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.09995, allocations: 0 / 334.9 MB, free: 13.77 MB / 286.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.001198/0.1012, allocations: 0.7172 MB / 335.6 MB, free: 13.01 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1012, allocations: 12.03 kB / 335.6 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.914e-05/0.1013, allocations: 74.7 kB / 335.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.867e-05/0.1014, allocations: 56.28 kB / 335.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.1018, allocations: 359.7 kB / 336.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.1018, allocations: 25.38 kB / 336.1 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.1019, allocations: 44.28 kB / 336.2 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008766/0.1028, allocations: 486.4 kB / 336.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1028, allocations: 0 / 336.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.1029, allocations: 16 kB / 336.7 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1029, allocations: 8 kB / 336.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009993/0.1039, allocations: 423.6 kB / 337.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.1059, allocations: 1.59 MB / 338.7 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000792/0.1067, allocations: 345.4 kB / 339 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004402/0.1071, allocations: 188.7 kB / 339.2 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.1072, allocations: 4 kB / 339.2 MB, free: 9.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.1072, allocations: 38.56 kB / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.502e-06/0.1072, allocations: 0 / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00341/0.1106, allocations: 1.525 MB / 340.7 MB, free: 7.582 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.1107, allocations: 81.11 kB / 340.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.111, allocations: 361.6 kB / 341.2 MB, free: 7.121 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.1111, allocations: 29.7 kB / 341.2 MB, free: 7.086 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1112, allocations: 239.9 kB / 341.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1114, allocations: 122.3 kB / 341.6 MB, free: 6.727 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.1115, allocations: 37.7 kB / 341.6 MB, free: 6.684 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1116, allocations: 358.7 kB / 342 MB, free: 6.324 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004887/0.1121, allocations: 196.7 kB / 342.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005774/0.1127, allocations: 264.8 kB / 342.4 MB, free: 5.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009718/0.1137, allocations: 431.5 kB / 342.8 MB, free: 5.391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1137, allocations: 4 kB / 342.8 MB, free: 5.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001089/0.1148, allocations: 0.5287 MB / 343.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.612e-05/0.1149, allocations: 152 kB / 343.5 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1149, allocations: 4 kB / 343.5 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1149, allocations: 4 kB / 343.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009195/0.1158, allocations: 259.7 kB / 343.8 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.1175, allocations: 1.548 MB / 345.3 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.1179, allocations: 51.95 kB / 345.4 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.1179, allocations: 16 kB / 345.4 MB, free: 2.664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-06/0.1179, allocations: 4 kB / 345.4 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009703/0.1189, allocations: 443.7 kB / 345.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1189, allocations: 8.188 kB / 345.8 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.399e-06/0.1189, allocations: 4 kB / 345.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.1194, allocations: 131.7 kB / 346 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1194, allocations: 7.984 kB / 346 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.1197, allocations: 43.97 kB / 346 MB, free: 2.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.1198, allocations: 12 kB / 346 MB, free: 2.023 MB / 286.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.0002294/0.12, allocations: 248.9 kB / 346.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.1201, allocations: 43.44 kB / 346.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.737e-05/0.1202, allocations: 44.25 kB / 346.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1202, allocations: 8 kB / 346.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1202, allocations: 0 / 346.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1202, allocations: 0 / 346.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.1218, allocations: 0.969 MB / 347.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1218, allocations: 0 / 347.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.1222, allocations: 96 kB / 347.4 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.1222, allocations: 7.938 kB / 347.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1223, allocations: 12 kB / 347.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1223, allocations: 0 / 347.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1223, allocations: 4 kB / 347.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.1238, allocations: 0.7445 MB / 348.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1239, allocations: 128.7 kB / 348.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.1239, allocations: 15.94 kB / 348.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.1242, allocations: 47.95 kB / 348.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.1243, allocations: 23.97 kB / 348.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.1243, allocations: 8 kB / 348.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.1246, allocations: 251.2 kB / 348.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1246, allocations: 0 / 348.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004881/0.1251, allocations: 140 kB / 348.8 MB, free: 15.13 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.001745/0.1268, allocations: 1.285 MB / 350.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.1289, allocations: 0.8017 MB / 350.9 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1289, allocations: 0 / 350.9 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.1294, allocations: 204.1 kB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.1301, allocations: 97.34 kB / 351.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.1366, allocations: 4.434 MB / 355.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.137, allocations: 0.8195 MB / 356.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.1372, allocations: 63.23 kB / 356.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.1374, allocations: 135.4 kB / 356.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of SimCode: time 1.193e-06/0.1375, allocations: 4 kB / 356.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.1587, allocations: 8.055 MB / 364.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.1589, allocations: 215.1 kB / 364.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.141, allocations: 0 / 364.9 MB, free: 14.77 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches