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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008784/0.0008784, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000975/0.000975, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9082/0.9082, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.987e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00306/0.00308, allocations: 2.92 MB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.004413, allocations: 0.9698 MB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.0046, allocations: 19.81 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003176/0.004918, allocations: 83.23 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.005104, allocations: 115 kB / 328.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.005535, allocations: 246.4 kB / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003753/0.005911, allocations: 0.5222 MB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.006111, allocations: 117.6 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.00633, allocations: 283.4 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.006501, allocations: 155.5 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.006546, allocations: 40 kB / 330 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.696e-05/0.006583, allocations: 40 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/0.006664, allocations: 111.6 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.006755, allocations: 143.6 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.00711, allocations: 0.4944 MB / 330.7 MB, free: 9.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.007112, allocations: 7.938 kB / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.007113, allocations: 0 / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.007119, allocations: 0 / 330.7 MB, free: 9.625 MB / 298.7 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.0008023/0.007921, allocations: 0.696 MB / 331.4 MB, free: 8.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.007958, allocations: 15.98 kB / 331.5 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.705e-05/0.008015, allocations: 78.66 kB / 331.5 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.00807, allocations: 52.61 kB / 331.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.008417, allocations: 305.4 kB / 331.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.008441, allocations: 29.38 kB / 331.9 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.008485, allocations: 40.38 kB / 332 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005612/0.009047, allocations: 0.4914 MB / 332.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.009064, allocations: 8.141 kB / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.009088, allocations: 20.12 kB / 332.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.009096, allocations: 12 kB / 332.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005396/0.009635, allocations: 367.6 kB / 332.8 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01097, allocations: 1.414 MB / 334.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.01155, allocations: 305.9 kB / 334.6 MB, free: 5.613 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.01179, allocations: 156.7 kB / 334.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.01182, allocations: 4 kB / 334.7 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.01184, allocations: 34.56 kB / 334.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.874e-06/0.01185, allocations: 4 kB / 334.7 MB, free: 5.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001809/0.01365, allocations: 1.241 MB / 336 MB, free: 4.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.0137, allocations: 110.8 kB / 336.1 MB, free: 3.973 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.01397, allocations: 365.6 kB / 336.5 MB, free: 3.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.01399, allocations: 29.7 kB / 336.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.01412, allocations: 248.4 kB / 336.7 MB, free: 3.328 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.665e-05/0.01418, allocations: 115 kB / 336.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-05/0.01427, allocations: 82.14 kB / 336.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.01441, allocations: 354.8 kB / 337.3 MB, free: 2.773 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002477/0.01465, allocations: 170.7 kB / 337.4 MB, free: 2.605 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.01495, allocations: 309.6 kB / 337.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005854/0.01554, allocations: 395.9 kB / 338.1 MB, free: 1.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01554, allocations: 0 / 338.1 MB, free: 1.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000613/0.01615, allocations: 497 kB / 338.6 MB, free: 1.352 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.01617, allocations: 8 kB / 338.6 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.01617, allocations: 4 kB / 338.6 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.01619, allocations: 7.938 kB / 338.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.01664, allocations: 207.9 kB / 338.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.01781, allocations: 1.465 MB / 340.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.01797, allocations: 39.95 kB / 340.3 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.01799, allocations: 16 kB / 340.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002964/0.01828, allocations: 273 kB / 340.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002754/0.01856, allocations: 301.8 kB / 340.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004461/0.019, allocations: 375.7 kB / 341.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.132e-06/0.019, allocations: 0 / 341.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005522/0.01956, allocations: 469.1 kB / 341.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.594e-06/0.01956, allocations: 4 kB / 341.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.01957, allocations: 4 kB / 341.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/0.01957, allocations: 7.938 kB / 341.7 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.01981, allocations: 123.8 kB / 341.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.01981, allocations: 8.156 kB / 341.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.01995, allocations: 35.89 kB / 341.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.01997, allocations: 16 kB / 341.9 MB, free: 13.82 MB / 314.7 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.0001011/0.02007, allocations: 208.1 kB / 342.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.02011, allocations: 35.77 kB / 342.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.02016, allocations: 48.25 kB / 342.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.02016, allocations: 4 kB / 342.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.02016, allocations: 4 kB / 342.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.02017, allocations: 7.922 kB / 342.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009459/0.02112, allocations: 0.8367 MB / 343.1 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.02112, allocations: 11.94 kB / 343.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.02134, allocations: 87.86 kB / 343.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.02134, allocations: 4 kB / 343.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.02135, allocations: 8 kB / 343.2 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.02136, allocations: 0 / 343.2 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.02136, allocations: 4 kB / 343.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000786/0.02214, allocations: 0.6719 MB / 343.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.869e-05/0.02222, allocations: 67.72 kB / 343.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.02225, allocations: 8 kB / 343.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.02239, allocations: 39.95 kB / 344 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.02244, allocations: 19.97 kB / 344 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.02246, allocations: 11.98 kB / 344 MB, free: 11.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001633/0.02262, allocations: 247.2 kB / 344.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02262, allocations: 0 / 344.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003181/0.02294, allocations: 136 kB / 344.4 MB, free: 11.29 MB / 314.7 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.00101/0.02395, allocations: 1.227 MB / 345.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009831/0.02493, allocations: 0.6577 MB / 346.3 MB, free: 9.363 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.02493, allocations: 3.938 kB / 346.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.02517, allocations: 175.8 kB / 346.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.02555, allocations: 94.75 kB / 346.5 MB, free: 9.098 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.02955, allocations: 3.935 MB / 350.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.02967, allocations: 212.2 kB / 350.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00015/0.02982, allocations: 71.2 kB / 350.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.02997, allocations: 136.5 kB / 350.9 MB, free: 4.574 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02997, allocations: 4 kB / 350.9 MB, free: 4.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.05368, allocations: 9.768 MB / 360.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/8.014, allocations: 6.688 kB / 360.6 MB, free: 10.95 MB / 330.7 MB " [Timeout remaining time 652] (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 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.773519789800048]