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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 115.7 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 190 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009741/0.0009741, allocations: 43.56 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08828, allocations: 49.45 MB / 349.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004295/0.09262, allocations: 3.148 MB / 352.7 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.09442, allocations: 0.9466 MB / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.09465, allocations: 15.88 kB / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.09498, allocations: 71.42 kB / 353.7 MB, free: 340 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.09522, allocations: 87.33 kB / 353.8 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004745/0.0957, allocations: 204.3 kB / 354 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005028/0.09622, allocations: 0.5147 MB / 354.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.09652, allocations: 169.2 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.09674, allocations: 195.2 kB / 354.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.09699, allocations: 207 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.8e-05/0.09707, allocations: 44 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.09714, allocations: 44 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.09726, allocations: 107.6 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001848/0.09745, allocations: 214.8 kB / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00047/0.09793, allocations: 482.4 kB / 356 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.09794, allocations: 0 / 356 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.09795, allocations: 4 kB / 356 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.09797, allocations: 0 / 356 MB, free: 14.09 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.001292/0.09926, allocations: 0.7677 MB / 356.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.09931, allocations: 15.89 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.803e-05/0.0994, allocations: 48.38 kB / 356.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.09982, allocations: 363.6 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.09986, allocations: 33.38 kB / 357.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.09993, allocations: 40.12 kB / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008441/0.1008, allocations: 446.3 kB / 357.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.1008, allocations: 3.906 kB / 357.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.952e-05/0.1009, allocations: 16 kB / 357.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1009, allocations: 12 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009454/0.1018, allocations: 375.6 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.1038, allocations: 1.563 MB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.1046, allocations: 330.6 kB / 360 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004251/0.105, allocations: 164.8 kB / 360.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1051, allocations: 4 kB / 360.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.1051, allocations: 34.56 kB / 360.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.1051, allocations: 0 / 360.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003063/0.1082, allocations: 1.39 MB / 361.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.1083, allocations: 81.11 kB / 361.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.1086, allocations: 357.6 kB / 362 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1086, allocations: 29.7 kB / 362 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.1088, allocations: 239.9 kB / 362.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.276e-05/0.1089, allocations: 114.3 kB / 362.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.109, allocations: 82.03 kB / 362.4 MB, free: 7.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1092, allocations: 358.7 kB / 362.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004782/0.1097, allocations: 174.5 kB / 362.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005092/0.1102, allocations: 248.8 kB / 363.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008662/0.1111, allocations: 395.3 kB / 363.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1111, allocations: 0 / 363.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001119/0.1122, allocations: 493.1 kB / 364.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.1122, allocations: 14.95 kB / 364.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1122, allocations: 0 / 364.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.1123, allocations: 4 kB / 364.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009095/0.1132, allocations: 207.9 kB / 364.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.1149, allocations: 1.572 MB / 365.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003758/0.1153, allocations: 36.06 kB / 365.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/0.1154, allocations: 12 kB / 365.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005547/0.1159, allocations: 272.9 kB / 366.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004571/0.1164, allocations: 244.8 kB / 366.4 MB, free: 3.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007704/0.1172, allocations: 367.4 kB / 366.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.404e-06/0.1172, allocations: 0 / 366.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009937/0.1182, allocations: 469.3 kB / 367.2 MB, free: 2.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.1182, allocations: 12 kB / 367.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1182, allocations: 0 / 367.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.573e-06/0.1182, allocations: 7.938 kB / 367.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.1187, allocations: 115.9 kB / 367.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1187, allocations: 7.984 kB / 367.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.119, allocations: 31.97 kB / 367.4 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.1191, allocations: 23.94 kB / 367.4 MB, free: 2 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.0001527/0.1192, allocations: 204.1 kB / 367.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.894e-05/0.1193, allocations: 47.31 kB / 367.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1194, allocations: 52.23 kB / 367.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1194, allocations: 4 kB / 367.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1194, allocations: 0 / 367.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1195, allocations: 0 / 367.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.121, allocations: 0.9189 MB / 368.6 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1211, allocations: 4 kB / 368.6 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.1215, allocations: 87.88 kB / 368.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1215, allocations: 0 / 368.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.1215, allocations: 8 kB / 368.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.1215, allocations: 4 kB / 368.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1216, allocations: 0 / 368.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1507/0.2722, allocations: 0.6666 MB / 369.4 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.2724, allocations: 134.5 kB / 369.5 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/0.2725, allocations: 10.91 kB / 369.5 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.2728, allocations: 32.41 kB / 369.6 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.008e-05/0.2729, allocations: 27.92 kB / 369.6 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.273, allocations: 10.31 kB / 369.6 MB, free: 25.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002677/0.2732, allocations: 247.6 kB / 369.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2732, allocations: 1.438 kB / 369.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000607/0.2739, allocations: 135.2 kB / 370 MB, free: 25.29 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.0001035/0.274, allocations: 110.6 kB / 370.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.276, allocations: 0.6998 MB / 370.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.276, allocations: 1.406 kB / 370.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.2764, allocations: 185.6 kB / 371 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006777/0.2771, allocations: 104.6 kB / 371.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.2789, allocations: 1.165 MB / 372.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.2792, allocations: 0.82 MB / 373.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002909/0.2795, allocations: 58.27 kB / 373.1 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2796, allocations: 29.56 kB / 373.2 MB, free: 23.87 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2796, allocations: 4 kB / 373.2 MB, free: 23.87 MB / 302.1 MB Notification: Performance of Templates: time 0.009755/0.2894, allocations: 4.515 MB / 377.7 MB, free: 23.61 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches