Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001887/0.001887, allocations: 70.11 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.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.002239/0.002239, allocations: 149.7 kB / 24.49 MB, free: 3.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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.0.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.0.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 50.94 kB / 319.4 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08746, allocations: 52.16 MB / 371.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004663/0.09213, allocations: 2.909 MB / 374.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.09388, allocations: 0.935 MB / 375.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.0941, allocations: 19.81 kB / 375.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.09442, allocations: 83.23 kB / 375.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00025/0.09467, allocations: 111.1 kB / 375.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.0952, allocations: 231.2 kB / 375.8 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005964/0.0958, allocations: 0.5262 MB / 376.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.09604, allocations: 121.6 kB / 376.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.09628, allocations: 199.2 kB / 376.7 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.09655, allocations: 194.9 kB / 376.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.785e-05/0.09663, allocations: 44 kB / 376.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.208e-05/0.0967, allocations: 40 kB / 376.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.09682, allocations: 99.62 kB / 377 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.09701, allocations: 179 kB / 377.2 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005752/0.09759, allocations: 0.494 MB / 377.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.09759, allocations: 3.938 kB / 377.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09759, allocations: 8 kB / 377.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.0976, allocations: 0 / 377.7 MB, free: 1.324 MB / 334.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.001342/0.09894, allocations: 0.6999 MB / 378.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.09898, allocations: 8.031 kB / 378.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.7e-05/0.09907, allocations: 52.61 kB / 378.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.09958, allocations: 306.2 kB / 378.8 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.09961, allocations: 29.38 kB / 378.8 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.09968, allocations: 47.89 kB / 378.9 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009508/0.1006, allocations: 476 kB / 379.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1007, allocations: 0 / 379.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.1007, allocations: 16 kB / 379.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1007, allocations: 12 kB / 379.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.1017, allocations: 375.6 kB / 379.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.1038, allocations: 1.364 MB / 381.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/0.1047, allocations: 298.6 kB / 381.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004607/0.1051, allocations: 161.2 kB / 381.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.1051, allocations: 7.938 kB / 381.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1052, allocations: 34.56 kB / 381.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.1052, allocations: 0 / 381.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003346/0.1085, allocations: 1.228 MB / 382.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/0.1086, allocations: 85.11 kB / 382.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.109, allocations: 345.6 kB / 383.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.109, allocations: 33.64 kB / 383.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.1092, allocations: 244.7 kB / 383.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.975e-05/0.1093, allocations: 123 kB / 383.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.1094, allocations: 82.14 kB / 383.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1096, allocations: 350.7 kB / 384 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/0.1101, allocations: 170.7 kB / 384.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005805/0.1107, allocations: 279.1 kB / 384.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009769/0.1117, allocations: 392.5 kB / 384.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1117, allocations: 0 / 384.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001156/0.1128, allocations: 489 kB / 385.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1129, allocations: 12.16 kB / 385.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1129, allocations: 4 kB / 385.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1129, allocations: 4 kB / 385.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009292/0.1138, allocations: 211.7 kB / 385.6 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/0.1155, allocations: 1.446 MB / 387 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.1159, allocations: 39.95 kB / 387 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.1159, allocations: 20.09 kB / 387.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005494/0.1165, allocations: 269 kB / 387.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000513/0.117, allocations: 267.1 kB / 387.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008652/0.1178, allocations: 367.8 kB / 387.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.1178, allocations: 4 kB / 388 MB, free: 6.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001101/0.1189, allocations: 476.9 kB / 388.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.119, allocations: 12.22 kB / 388.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-06/0.119, allocations: 0 / 388.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.119, allocations: 4 kB / 388.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/0.1195, allocations: 115.9 kB / 388.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.1195, allocations: 15.86 kB / 388.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1198, allocations: 31.97 kB / 388.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.1198, allocations: 12 kB / 388.6 MB, free: 5.895 MB / 350.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.000172/0.12, allocations: 208.1 kB / 388.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.1201, allocations: 35.77 kB / 388.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.1202, allocations: 48.08 kB / 388.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1202, allocations: 11.88 kB / 388.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1202, allocations: 0 / 388.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1202, allocations: 4 kB / 388.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.1219, allocations: 0.7981 MB / 389.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1219, allocations: 4 kB / 389.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.1223, allocations: 79.88 kB / 389.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1223, allocations: 8.125 kB / 389.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.1224, allocations: 12 kB / 389.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1224, allocations: 3.984 kB / 389.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1224, allocations: 3.938 kB / 389.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.1239, allocations: 0.6637 MB / 390.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.124, allocations: 59.75 kB / 390.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.124, allocations: 12 kB / 390.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.1244, allocations: 31.95 kB / 390.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.1244, allocations: 31.89 kB / 390.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1244, allocations: 8 kB / 390.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.1247, allocations: 239.2 kB / 390.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1247, allocations: 0 / 390.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005329/0.1253, allocations: 132 kB / 391 MB, free: 3.438 MB / 350.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.0001248/0.1254, allocations: 107.2 kB / 391.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.1274, allocations: 0.6635 MB / 391.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1274, allocations: 0 / 391.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004828/0.1279, allocations: 172.5 kB / 391.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.1285, allocations: 103.8 kB / 392 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.1303, allocations: 1.01 MB / 393 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.1306, allocations: 212.2 kB / 393.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.1308, allocations: 67.2 kB / 393.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1309, allocations: 32.5 kB / 393.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1309, allocations: 4 kB / 393.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of Templates: time 0.01007/0.141, allocations: 4.865 MB / 398.2 MB, free: 12.23 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.441250848933123]