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.001188/0.001188, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.0009367/0.0009367, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.964/0.964, allocations: 177 MB / 205.2 MB, free: 5.02 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: 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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449e-05/1.69e-05, allocations: 5.266 kB / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003064/0.003081, allocations: 3.041 MB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.004448, allocations: 1.012 MB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.004626, allocations: 19.81 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.004905, allocations: 87.12 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.005088, allocations: 107.1 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.00547, allocations: 235.5 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.005847, allocations: 0.53 MB / 278.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.006042, allocations: 122.3 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.006252, allocations: 279.4 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.006404, allocations: 155.5 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/0.006448, allocations: 44 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.775e-05/0.006486, allocations: 40 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.493e-05/0.006571, allocations: 107.6 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.184e-05/0.006663, allocations: 139.6 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002946/0.006957, allocations: 342.6 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082e-06/0.006958, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.81e-07/0.006959, allocations: 4 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.905e-06/0.006962, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.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.0005768/0.007538, allocations: 0.6594 MB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.239e-05/0.007561, allocations: 15.98 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.881e-05/0.00762, allocations: 64.83 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.00787, allocations: 265.5 kB / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.007894, allocations: 29.38 kB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.007932, allocations: 40.31 kB / 280.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.008267, allocations: 398.7 kB / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.008279, allocations: 8.078 kB / 281.1 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.008301, allocations: 20.36 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.008311, allocations: 11.94 kB / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.008458, allocations: 117.7 kB / 281.2 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009713/0.009429, allocations: 1.101 MB / 282.3 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.009651, allocations: 200.3 kB / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.095e-05/0.009712, allocations: 60.81 kB / 282.6 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.009727, allocations: 4 kB / 282.6 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.009745, allocations: 38.5 kB / 282.6 MB, free: 7.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.072e-06/0.009746, allocations: 4 kB / 282.6 MB, free: 7.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007459/0.01049, allocations: 0.6338 MB / 283.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.01053, allocations: 106.8 kB / 283.3 MB, free: 6.785 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.01069, allocations: 307.2 kB / 283.6 MB, free: 6.473 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.01071, allocations: 33.7 kB / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.0108, allocations: 221.2 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.01086, allocations: 118.9 kB / 284 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.01093, allocations: 82.14 kB / 284.1 MB, free: 6.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.856e-05/0.01101, allocations: 354.7 kB / 284.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.823e-05/0.01107, allocations: 49.67 kB / 284.5 MB, free: 5.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.01118, allocations: 177.8 kB / 284.7 MB, free: 5.383 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.01133, allocations: 205.6 kB / 284.9 MB, free: 5.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01133, allocations: 0 / 284.9 MB, free: 5.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002014/0.01154, allocations: 220.1 kB / 285.1 MB, free: 4.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.01155, allocations: 7.984 kB / 285.1 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01155, allocations: 4 kB / 285.1 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.01156, allocations: 7.938 kB / 285.1 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003164/0.01188, allocations: 164 kB / 285.3 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005619/0.01244, allocations: 1.243 MB / 286.5 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.01255, allocations: 27.98 kB / 286.5 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.01256, allocations: 12 kB / 286.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.815e-05/0.01266, allocations: 130.8 kB / 286.7 MB, free: 3.254 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001174/0.01278, allocations: 185.8 kB / 286.8 MB, free: 3.023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001571/0.01293, allocations: 194.6 kB / 287 MB, free: 2.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.01294, allocations: 0 / 287 MB, free: 2.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001935/0.01313, allocations: 228.1 kB / 287.3 MB, free: 2.574 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.66e-06/0.01314, allocations: 4 kB / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-06/0.01314, allocations: 4 kB / 287.3 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.787e-06/0.01314, allocations: 4.219 kB / 287.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.01334, allocations: 107.9 kB / 287.4 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.01334, allocations: 4 kB / 287.4 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.848e-05/0.01344, allocations: 23.98 kB / 287.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.01345, allocations: 16 kB / 287.4 MB, free: 2.414 MB / 266.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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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 9.059e-05/0.01354, allocations: 208.1 kB / 287.6 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.789e-05/0.01358, allocations: 39.89 kB / 287.7 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.151e-05/0.01362, allocations: 44.09 kB / 287.7 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01363, allocations: 8 kB / 287.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.01363, allocations: 0 / 287.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01363, allocations: 0 / 287.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005017/0.01413, allocations: 0.4972 MB / 288.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.01414, allocations: 0 / 288.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.0143, allocations: 75.91 kB / 288.3 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.01431, allocations: 0 / 288.3 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.01432, allocations: 11.98 kB / 288.3 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01432, allocations: 12.06 kB / 288.3 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01432, allocations: 0 / 288.3 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.01464, allocations: 394.6 kB / 288.7 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.0147, allocations: 35.75 kB / 288.7 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.01472, allocations: 8 kB / 288.7 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-05/0.01482, allocations: 19.98 kB / 288.8 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.01487, allocations: 24.19 kB / 288.8 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.01488, allocations: 11.94 kB / 288.8 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.787e-05/0.01496, allocations: 124.7 kB / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01496, allocations: 0 / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.01523, allocations: 139.9 kB / 289.1 MB, free: 0.7148 MB / 266.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 6.422e-05/0.0153, allocations: 80.42 kB / 289.1 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004142/0.01571, allocations: 348.3 kB / 289.5 MB, free: 292 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.01572, allocations: 4 kB / 289.5 MB, free: 288 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.678e-05/0.01579, allocations: 80.69 kB / 289.6 MB, free: 204 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.01607, allocations: 106.6 kB / 289.7 MB, free: 104 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1254/0.1415, allocations: 0.8021 MB / 290.5 MB, free: 25.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.1416, allocations: 112.2 kB / 290.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002744/0.1419, allocations: 47.14 kB / 290.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.1421, allocations: 134.7 kB / 290.7 MB, free: 25.01 MB / 266.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1421, allocations: 1.531 kB / 290.7 MB, free: 25.01 MB / 266.7 MB Notification: Performance of Templates: time 0.01045/0.1525, allocations: 5.172 MB / 295.9 MB, free: 24.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.643008965998888]