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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 122.2 kB / 18.45 MB, free: 4.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 207.6 MB / 231.8 MB, free: 4.012 MB / 174.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001775/0.001775, allocations: 51.92 kB / 342.2 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09175, allocations: 49.12 MB / 391.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005135/0.09688, allocations: 3.136 MB / 394.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.09913, allocations: 1.017 MB / 395.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003051/0.09944, allocations: 15.94 kB / 395.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004371/0.09987, allocations: 87.17 kB / 395.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.1002, allocations: 111.1 kB / 395.7 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.1008, allocations: 235.6 kB / 396 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006724/0.1015, allocations: 0.5223 MB / 396.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.1018, allocations: 125.2 kB / 396.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002782/0.1021, allocations: 203.1 kB / 396.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1024, allocations: 210.9 kB / 397 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.1025, allocations: 40 kB / 397 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.1025, allocations: 44 kB / 397.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.1026, allocations: 103.6 kB / 397.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002326/0.1029, allocations: 214.8 kB / 397.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006556/0.1035, allocations: 0.4979 MB / 397.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1035, allocations: 0 / 397.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1035, allocations: 3.938 kB / 397.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.1036, allocations: 0 / 397.9 MB, free: 2.137 MB / 318.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.001455/0.105, allocations: 0.783 MB / 398.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1051, allocations: 8.031 kB / 398.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.1052, allocations: 74.66 kB / 398.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/0.1052, allocations: 56.61 kB / 398.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006478/0.1059, allocations: 380 kB / 399.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.1059, allocations: 25.38 kB / 399.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.769e-05/0.106, allocations: 44.36 kB / 399.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009216/0.1069, allocations: 454.4 kB / 399.7 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.1069, allocations: 3.953 kB / 399.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.107, allocations: 16 kB / 399.7 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.107, allocations: 11.98 kB / 399.7 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.108, allocations: 375.7 kB / 400.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.1102, allocations: 1.563 MB / 401.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000798/0.111, allocations: 299.6 kB / 402 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.1115, allocations: 164.7 kB / 402.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.1115, allocations: 4 kB / 402.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.1115, allocations: 30.56 kB / 402.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.1115, allocations: 0 / 402.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003233/0.1147, allocations: 1.401 MB / 403.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/0.1148, allocations: 81.11 kB / 403.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.1152, allocations: 361.7 kB / 404 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.1153, allocations: 29.7 kB / 404 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.1155, allocations: 248.3 kB / 404.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1156, allocations: 123.1 kB / 404.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.1157, allocations: 82.08 kB / 404.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1159, allocations: 358.7 kB / 404.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/0.1163, allocations: 174.5 kB / 405 MB, free: 10.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.1169, allocations: 248.8 kB / 405.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009037/0.1178, allocations: 399.8 kB / 405.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1178, allocations: 0 / 405.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001118/0.1189, allocations: 497 kB / 406.1 MB, free: 9.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1189, allocations: 11.91 kB / 406.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1189, allocations: 3.984 kB / 406.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.1189, allocations: 4 kB / 406.1 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008529/0.1198, allocations: 208 kB / 406.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.1216, allocations: 1.568 MB / 407.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.122, allocations: 44.05 kB / 407.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.122, allocations: 16 kB / 407.9 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000543/0.1225, allocations: 272.8 kB / 408.2 MB, free: 7.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00047/0.123, allocations: 244.8 kB / 408.5 MB, free: 6.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007958/0.1238, allocations: 375.6 kB / 408.8 MB, free: 6.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/0.1238, allocations: 4 kB / 408.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001018/0.1248, allocations: 469 kB / 409.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1248, allocations: 8 kB / 409.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1248, allocations: 4 kB / 409.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.42e-06/0.1248, allocations: 4 kB / 409.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.1253, allocations: 115.8 kB / 409.4 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1253, allocations: 7.984 kB / 409.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.1256, allocations: 40.12 kB / 409.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1256, allocations: 12 kB / 409.5 MB, free: 5.902 MB / 334.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.0001655/0.1258, allocations: 200.1 kB / 409.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.175e-05/0.1259, allocations: 43.77 kB / 409.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.126, allocations: 48.17 kB / 409.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.126, allocations: 4 kB / 409.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.126, allocations: 3.938 kB / 409.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.126, allocations: 4 kB / 409.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.1277, allocations: 0.9264 MB / 410.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1277, allocations: 4 kB / 410.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004175/0.1281, allocations: 83.88 kB / 410.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.1281, allocations: 4 kB / 410.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.1281, allocations: 8 kB / 410.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1281, allocations: 0 / 410.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/0.1281, allocations: 4 kB / 410.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.1296, allocations: 0.6788 MB / 411.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.1297, allocations: 140.8 kB / 411.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.1298, allocations: 8 kB / 411.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.1301, allocations: 39.95 kB / 411.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.1e-05/0.1301, allocations: 19.97 kB / 411.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.1302, allocations: 12 kB / 411.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002882/0.1305, allocations: 255.1 kB / 411.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1305, allocations: 0 / 411.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005258/0.131, allocations: 132 kB / 412.1 MB, free: 3.18 MB / 334.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.001752/0.1327, allocations: 1.212 MB / 413.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.1346, allocations: 0.6598 MB / 413.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1346, allocations: 448 / 413.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.135, allocations: 175.8 kB / 414.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.1357, allocations: 110.2 kB / 414.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006155/0.1418, allocations: 4.035 MB / 418.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.1423, allocations: 0.8195 MB / 419.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.1425, allocations: 63.23 kB / 419.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.1427, allocations: 143.3 kB / 419.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1427, allocations: 0 / 419.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.1803, allocations: 8.867 MB / 428.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.29, allocations: 12 kB / 428.2 MB, free: 2.812 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000798085 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.719154573045671]