Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 73.41 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002099/0.002099, allocations: 158.6 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 59.62 kB / 325.5 MB, free: 260 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09563, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004537/0.1002, allocations: 2.902 MB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.102, allocations: 0.9775 MB / 382.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.1022, allocations: 15.88 kB / 382.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003426/0.1025, allocations: 87.17 kB / 382.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.1028, allocations: 107.1 kB / 383 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006029/0.1034, allocations: 235.5 kB / 383.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005863/0.104, allocations: 0.5223 MB / 383.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.1042, allocations: 117.7 kB / 383.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.1045, allocations: 195.2 kB / 384 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1047, allocations: 190.9 kB / 384.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.558e-05/0.1048, allocations: 44 kB / 384.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.1049, allocations: 44 kB / 384.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.105, allocations: 111.5 kB / 384.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.1052, allocations: 167.1 kB / 384.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005349/0.1057, allocations: 0.4978 MB / 385.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1057, allocations: 0 / 385.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1057, allocations: 4 kB / 385.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1057, allocations: 0 / 385.1 MB, free: 9.449 MB / 350.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.001329/0.107, allocations: 0.7038 MB / 385.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.1071, allocations: 8.031 kB / 385.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.6e-05/0.1072, allocations: 52.61 kB / 385.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/0.1077, allocations: 310.1 kB / 386.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.1077, allocations: 29.38 kB / 386.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.1078, allocations: 36.38 kB / 386.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009455/0.1087, allocations: 0.5107 MB / 386.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.1088, allocations: 7.953 kB / 386.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.1088, allocations: 16 kB / 386.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-06/0.1088, allocations: 8 kB / 386.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.1098, allocations: 375.6 kB / 387.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.1118, allocations: 1.352 MB / 388.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.1127, allocations: 298.8 kB / 388.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.1131, allocations: 156.7 kB / 388.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1131, allocations: 8.5 kB / 388.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.1132, allocations: 38.5 kB / 389 MB, free: 5.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.503e-06/0.1132, allocations: 0 / 389 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003274/0.1164, allocations: 1.239 MB / 390.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.1165, allocations: 106.8 kB / 390.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003769/0.1169, allocations: 345.6 kB / 390.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.1169, allocations: 29.7 kB / 390.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.1171, allocations: 244.6 kB / 390.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.667e-05/0.1172, allocations: 131.1 kB / 391 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1173, allocations: 78.14 kB / 391.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1175, allocations: 354.7 kB / 391.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.118, allocations: 166.7 kB / 391.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005731/0.1185, allocations: 309.7 kB / 391.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009664/0.1195, allocations: 391.9 kB / 392.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1195, allocations: 0 / 392.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001153/0.1207, allocations: 0.4891 MB / 392.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1207, allocations: 8 kB / 392.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1207, allocations: 0 / 392.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1207, allocations: 4 kB / 392.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009195/0.1216, allocations: 211.9 kB / 393 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/0.1234, allocations: 1.446 MB / 394.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.1237, allocations: 39.89 kB / 394.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.1237, allocations: 19.98 kB / 394.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005462/0.1243, allocations: 273.1 kB / 394.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005196/0.1248, allocations: 297.7 kB / 395.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008509/0.1257, allocations: 367.7 kB / 395.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.803e-06/0.1257, allocations: 0 / 395.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00107/0.1267, allocations: 473 kB / 395.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.1267, allocations: 4 kB / 395.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1267, allocations: 4 kB / 395.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.1268, allocations: 4 kB / 395.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.1273, allocations: 120 kB / 396 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1273, allocations: 8 kB / 396 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.1276, allocations: 39.95 kB / 396.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.1276, allocations: 19.94 kB / 396.1 MB, free: 13.86 MB / 366.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.0001488/0.1278, allocations: 196.9 kB / 396.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.89e-05/0.1278, allocations: 39.77 kB / 396.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.77e-05/0.1279, allocations: 48.03 kB / 396.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1279, allocations: 8 kB / 396.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1279, allocations: 0 / 396.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.1279, allocations: 7.922 kB / 396.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.1296, allocations: 0.7942 MB / 397.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.1296, allocations: 4 kB / 397.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.13, allocations: 83.88 kB / 397.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.13, allocations: 7.938 kB / 397.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.13, allocations: 8 kB / 397.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.13, allocations: 0 / 397.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.13, allocations: 0 / 397.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.1316, allocations: 0.6839 MB / 398 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.1317, allocations: 59.73 kB / 398 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.1317, allocations: 11.94 kB / 398 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.1321, allocations: 31.95 kB / 398.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.1321, allocations: 23.95 kB / 398.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1322, allocations: 15.94 kB / 398.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.1324, allocations: 239.2 kB / 398.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1324, allocations: 0 / 398.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005317/0.133, allocations: 136 kB / 398.5 MB, free: 11.39 MB / 366.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.0001109/0.1331, allocations: 103.2 kB / 398.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.1351, allocations: 0.6562 MB / 399.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1351, allocations: 0 / 399.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004785/0.1355, allocations: 167.8 kB / 399.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.1362, allocations: 109.1 kB / 399.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.138, allocations: 0.9982 MB / 400.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.1382, allocations: 216.2 kB / 400.7 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.1385, allocations: 63.22 kB / 400.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.1386, allocations: 32.5 kB / 400.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1386, allocations: 0 / 400.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of Templates: time 0.01033/0.1489, allocations: 4.841 MB / 405.6 MB, free: 4.227 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.459550892002881]