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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001316/0.001315, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.1 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 65.17 kB / 307.1 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09664, allocations: 50.53 MB / 357.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004645/0.1013, allocations: 3.149 MB / 360.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.1033, allocations: 0.9778 MB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.1035, allocations: 11.94 kB / 361.8 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.1039, allocations: 67.5 kB / 361.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.1041, allocations: 87.33 kB / 362 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005419/0.1047, allocations: 211.3 kB / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005513/0.1053, allocations: 0.5068 MB / 362.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000309/0.1056, allocations: 177.2 kB / 362.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.1058, allocations: 199.1 kB / 363 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.1061, allocations: 203 kB / 363.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.455e-05/0.1062, allocations: 40 kB / 363.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.577e-05/0.1062, allocations: 44 kB / 363.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.1064, allocations: 103.6 kB / 363.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1066, allocations: 214.8 kB / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.107, allocations: 371.4 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.107, allocations: 4 kB / 364 MB, free: 7.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.107, allocations: 0 / 364 MB, free: 7.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.107, allocations: 0 / 364 MB, free: 7.801 MB / 302.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.001312/0.1083, allocations: 0.7639 MB / 364.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1084, allocations: 8.031 kB / 364.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.309e-05/0.1085, allocations: 52.31 kB / 364.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.109, allocations: 359.7 kB / 365.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.109, allocations: 33.31 kB / 365.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.1091, allocations: 36.38 kB / 365.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009244/0.11, allocations: 463.5 kB / 365.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.11, allocations: 3.906 kB / 365.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.1101, allocations: 16 kB / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.1101, allocations: 8 kB / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009779/0.1111, allocations: 379.6 kB / 366.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.1133, allocations: 1.579 MB / 367.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.1141, allocations: 316.9 kB / 368 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.1145, allocations: 160.8 kB / 368.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.1146, allocations: 7.938 kB / 368.1 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.1146, allocations: 42.56 kB / 368.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.1146, allocations: 0 / 368.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003246/0.1179, allocations: 1.377 MB / 369.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.118, allocations: 110.8 kB / 369.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.1184, allocations: 349.6 kB / 370 MB, free: 1.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.1184, allocations: 41.69 kB / 370 MB, free: 1.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.1186, allocations: 239.9 kB / 370.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/0.1187, allocations: 114.5 kB / 370.4 MB, free: 1.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.1189, allocations: 82.03 kB / 370.5 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.119, allocations: 346.8 kB / 370.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004645/0.1195, allocations: 174.5 kB / 371 MB, free: 432 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005187/0.12, allocations: 257.7 kB / 371.2 MB, free: 140 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1928/0.3129, allocations: 383.7 kB / 371.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.3129, allocations: 1.094 kB / 371.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001153/0.3141, allocations: 490.9 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3141, allocations: 7.484 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.3141, allocations: 1.875 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.3141, allocations: 4.406 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008903/0.315, allocations: 214.2 kB / 372.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3164, allocations: 1.573 MB / 373.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.3167, allocations: 43.19 kB / 373.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.3168, allocations: 15.33 kB / 373.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005114/0.3173, allocations: 270.4 kB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004276/0.3177, allocations: 244.6 kB / 374.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007558/0.3185, allocations: 376.9 kB / 374.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.3185, allocations: 1.406 kB / 374.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009544/0.3195, allocations: 470.9 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.3195, allocations: 9.031 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3195, allocations: 6.406 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.411e-06/0.3195, allocations: 3.219 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005089/0.32, allocations: 122.7 kB / 375.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3201, allocations: 5.047 kB / 375.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003316/0.3204, allocations: 40.66 kB / 375.5 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.3204, allocations: 16.23 kB / 375.5 MB, free: 18.08 MB / 302.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.0001133/0.3205, allocations: 206.1 kB / 375.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.3206, allocations: 41.44 kB / 375.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.858e-05/0.3207, allocations: 42.77 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3207, allocations: 7.25 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3207, allocations: 2.062 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3207, allocations: 1.078 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.3223, allocations: 0.9165 MB / 376.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3223, allocations: 1.984 kB / 376.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.3227, allocations: 86.55 kB / 376.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3227, allocations: 2.75 kB / 376.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3227, allocations: 11.36 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3227, allocations: 7.562 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3227, allocations: 4.031 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.3241, allocations: 0.6737 MB / 377.5 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3242, allocations: 134.1 kB / 377.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.3242, allocations: 11.88 kB / 377.6 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.3246, allocations: 35.81 kB / 377.6 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.3247, allocations: 27.95 kB / 377.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3247, allocations: 10.86 kB / 377.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.3249, allocations: 252 kB / 377.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3249, allocations: 0 / 377.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000542/0.3255, allocations: 134.2 kB / 378.1 MB, free: 16.68 MB / 302.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.0001074/0.3256, allocations: 106.6 kB / 378.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.3275, allocations: 0.7074 MB / 378.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3275, allocations: 0 / 378.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004309/0.3279, allocations: 178.5 kB / 379 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000687/0.3286, allocations: 105.4 kB / 379.2 MB, free: 16.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.3303, allocations: 1.201 MB / 380.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.3305, allocations: 0.8146 MB / 381.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3307, allocations: 33.25 kB / 381.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3307, allocations: 2.844 kB / 381.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Templates: time 0.008878/0.3396, allocations: 5.94 MB / 387.1 MB, free: 13.16 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches