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.001409/0.001409, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001526/0.001526, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.25/1.25, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.00119/0.00119, allocations: 52.16 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07141/0.07261, allocations: 46.63 MB / 327.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004175/0.07682, allocations: 3.118 MB / 330.5 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.0786, allocations: 1.01 MB / 331.5 MB, free: 244 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.07889, allocations: 15.88 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003248/0.07924, allocations: 87.17 kB / 331.6 MB, free: 140 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.07951, allocations: 115 kB / 331.7 MB, free: 24 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.08006, allocations: 223.6 kB / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.08053, allocations: 0.5185 MB / 332.4 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.08081, allocations: 169.5 kB / 332.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.08101, allocations: 195.1 kB / 332.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.08123, allocations: 207 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.257e-05/0.08131, allocations: 43.94 kB / 333 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.193e-05/0.08137, allocations: 40 kB / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.08148, allocations: 103.6 kB / 333.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.08166, allocations: 222.7 kB / 333.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.08207, allocations: 482.3 kB / 333.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.08208, allocations: 0 / 333.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.08208, allocations: 0 / 333.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.08209, allocations: 0 / 333.9 MB, free: 13.84 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.001195/0.0833, allocations: 0.7755 MB / 334.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.08334, allocations: 12.03 kB / 334.7 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.61e-05/0.08342, allocations: 74.72 kB / 334.7 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.683e-05/0.0835, allocations: 56.28 kB / 334.8 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003846/0.08389, allocations: 359.7 kB / 335.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.08393, allocations: 29.38 kB / 335.2 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/0.084, allocations: 44.27 kB / 335.2 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008249/0.08483, allocations: 446.5 kB / 335.7 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.08486, allocations: 7.938 kB / 335.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.0849, allocations: 15.98 kB / 335.7 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.08492, allocations: 12 kB / 335.7 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009729/0.0859, allocations: 371.7 kB / 336 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.0878, allocations: 1.586 MB / 337.6 MB, free: 9.863 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007921/0.08861, allocations: 310.8 kB / 337.9 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.08905, allocations: 168.7 kB / 338.1 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.08909, allocations: 7.984 kB / 338.1 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.08911, allocations: 34.56 kB / 338.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.443e-06/0.08912, allocations: 0 / 338.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003146/0.09227, allocations: 1.381 MB / 339.5 MB, free: 7.859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.09233, allocations: 85.05 kB / 339.6 MB, free: 7.758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.09268, allocations: 361.7 kB / 340 MB, free: 7.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.09272, allocations: 29.7 kB / 340 MB, free: 7.363 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.09287, allocations: 247.8 kB / 340.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/0.09296, allocations: 122.3 kB / 340.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.09308, allocations: 78.03 kB / 340.4 MB, free: 6.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.09321, allocations: 354.7 kB / 340.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004736/0.09368, allocations: 170.5 kB / 340.9 MB, free: 6.387 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.0942, allocations: 244.8 kB / 341.2 MB, free: 6.117 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/0.09512, allocations: 392 kB / 341.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.09513, allocations: 0 / 341.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001104/0.09624, allocations: 496.7 kB / 342 MB, free: 5.215 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.09627, allocations: 8 kB / 342.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.09628, allocations: 3.984 kB / 342.1 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.0963, allocations: 8.219 kB / 342.1 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000884/0.09719, allocations: 207.7 kB / 342.3 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.09875, allocations: 1.58 MB / 343.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.09909, allocations: 43.95 kB / 343.9 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.09913, allocations: 12 kB / 343.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005161/0.09965, allocations: 277 kB / 344.2 MB, free: 2.945 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004625/0.1001, allocations: 232.8 kB / 344.4 MB, free: 2.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008075/0.1009, allocations: 375.7 kB / 344.8 MB, free: 2.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.436e-06/0.101, allocations: 4 kB / 344.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009994/0.102, allocations: 464.7 kB / 345.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.102, allocations: 8 kB / 345.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.102, allocations: 0 / 345.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.787e-06/0.102, allocations: 4 kB / 345.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.1025, allocations: 128 kB / 345.4 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1025, allocations: 7.984 kB / 345.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.1028, allocations: 35.97 kB / 345.4 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.1028, allocations: 12 kB / 345.4 MB, free: 1.637 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.0001322/0.103, allocations: 200.2 kB / 345.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.232e-05/0.1031, allocations: 47.38 kB / 345.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.625e-05/0.1031, allocations: 56.17 kB / 345.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1032, allocations: 4 kB / 345.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1032, allocations: 0 / 345.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1032, allocations: 3.984 kB / 345.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001616/0.1048, allocations: 0.9143 MB / 346.6 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1048, allocations: 4 kB / 346.6 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.1052, allocations: 83.88 kB / 346.7 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.1053, allocations: 8.125 kB / 346.7 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.1053, allocations: 11.94 kB / 346.7 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1053, allocations: 0 / 346.7 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1053, allocations: 4 kB / 346.7 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.1067, allocations: 0.6774 MB / 347.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.1069, allocations: 132.7 kB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.1069, allocations: 11.94 kB / 347.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.1072, allocations: 35.95 kB / 347.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.1073, allocations: 19.97 kB / 347.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.1073, allocations: 12 kB / 347.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.1076, allocations: 263.1 kB / 347.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1076, allocations: 0 / 347.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005161/0.1081, allocations: 132 kB / 348 MB, free: 14.91 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.00167/0.1098, allocations: 1.215 MB / 349.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.1117, allocations: 0.7108 MB / 349.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1117, allocations: 0 / 349.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004749/0.1122, allocations: 175.8 kB / 350.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007049/0.1129, allocations: 105.8 kB / 350.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005965/0.1189, allocations: 4.07 MB / 354.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.1193, allocations: 0.8234 MB / 355.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.1195, allocations: 59.23 kB / 355.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.1198, allocations: 147.4 kB / 355.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1198, allocations: 4 kB / 355.3 MB, free: 7.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.1466, allocations: 8.629 MB / 363.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.54, allocations: 12 kB / 364 MB, free: 14.7 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches