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.0009115/0.0009115, allocations: 97.58 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 202.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.7 MB / 247.5 MB, free: 9.328 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002274, allocations: 4 kB / 308.4 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.08991, allocations: 51.53 MB / 359.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003728/0.09368, allocations: 2.755 MB / 362.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.09558, allocations: 0.9778 MB / 363.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000336/0.09594, allocations: 11.94 kB / 363.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003373/0.0963, allocations: 67.5 kB / 363.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.09663, allocations: 83.31 kB / 363.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/0.09722, allocations: 207.3 kB / 364 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005781/0.09781, allocations: 499 kB / 364.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.09812, allocations: 153.2 kB / 364.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.09836, allocations: 163.1 kB / 364.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.09862, allocations: 182.9 kB / 365 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.09868, allocations: 16 kB / 365 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.811e-05/0.09874, allocations: 16 kB / 365 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-05/0.09883, allocations: 67.69 kB / 365.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.09902, allocations: 212.5 kB / 365.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.09937, allocations: 343.4 kB / 365.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09938, allocations: 0 / 365.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09939, allocations: 0 / 365.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.09941, allocations: 0 / 365.6 MB, free: 7.27 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.001239/0.1007, allocations: 0.7133 MB / 366.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1007, allocations: 8.031 kB / 366.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.1008, allocations: 52.38 kB / 366.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.1013, allocations: 363.6 kB / 366.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.1013, allocations: 21.38 kB / 366.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.016e-05/0.1014, allocations: 44.38 kB / 366.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.1023, allocations: 479.5 kB / 367.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1024, allocations: 7.906 kB / 367.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.1024, allocations: 16 kB / 367.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1024, allocations: 8 kB / 367.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.1035, allocations: 419.6 kB / 367.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.1057, allocations: 1.579 MB / 369.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008338/0.1065, allocations: 350 kB / 369.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004686/0.107, allocations: 188.8 kB / 369.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.107, allocations: 7.938 kB / 369.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.1071, allocations: 34.56 kB / 369.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.1071, allocations: 0 / 369.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003458/0.1105, allocations: 1.521 MB / 371.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.1106, allocations: 110.8 kB / 371.5 MB, free: 1.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.111, allocations: 353.6 kB / 371.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.111, allocations: 29.7 kB / 371.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.1112, allocations: 239.9 kB / 372.1 MB, free: 428 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.1113, allocations: 118.5 kB / 372.2 MB, free: 308 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.1114, allocations: 45.62 kB / 372.3 MB, free: 256 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1674/0.2788, allocations: 346.8 kB / 372.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007081/0.2795, allocations: 185 kB / 372.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006824/0.2802, allocations: 283.6 kB / 373.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.2814, allocations: 443.9 kB / 373.5 MB, free: 18.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2814, allocations: 1 kB / 373.5 MB, free: 18.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001504/0.2829, allocations: 0.5283 MB / 374 MB, free: 18.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.84e-05/0.283, allocations: 155.4 kB / 374.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.283, allocations: 5.938 kB / 374.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.249e-05/0.2831, allocations: 3.984 kB / 374.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.2841, allocations: 257.4 kB / 374.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.2856, allocations: 1.547 MB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.286, allocations: 48.8 kB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.2861, allocations: 14.97 kB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.2861, allocations: 2.875 kB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001142/0.2872, allocations: 444.9 kB / 376.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2873, allocations: 2.219 kB / 376.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.2873, allocations: 8.406 kB / 376.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005124/0.2878, allocations: 132.4 kB / 376.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.2878, allocations: 5.375 kB / 376.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.2882, allocations: 48.23 kB / 376.7 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.2882, allocations: 15 kB / 376.7 MB, free: 17.28 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.0002338/0.2885, allocations: 250.8 kB / 376.9 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.958e-05/0.2886, allocations: 39.53 kB / 377 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.2887, allocations: 51.66 kB / 377 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2887, allocations: 6.781 kB / 377 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2887, allocations: 1.406 kB / 377 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.2887, allocations: 2.016 kB / 377 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.2906, allocations: 0.9597 MB / 378 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2906, allocations: 1.375 kB / 378 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/0.291, allocations: 101.7 kB / 378.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.291, allocations: 2.016 kB / 378.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.2911, allocations: 8.453 kB / 378.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.2911, allocations: 2.875 kB / 378.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.2911, allocations: 1.922 kB / 378.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.2926, allocations: 0.7422 MB / 378.8 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.2928, allocations: 137.4 kB / 379 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.2928, allocations: 9.922 kB / 379 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.2932, allocations: 46.72 kB / 379 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.299e-05/0.2933, allocations: 23.58 kB / 379.1 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.2933, allocations: 11.22 kB / 379.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002884/0.2936, allocations: 251.4 kB / 379.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2936, allocations: 1 kB / 379.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005938/0.2942, allocations: 141.5 kB / 379.5 MB, free: 16.19 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.00011/0.2943, allocations: 101.2 kB / 379.6 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.2964, allocations: 0.7915 MB / 380.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2964, allocations: 1.094 kB / 380.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.2969, allocations: 203.3 kB / 380.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007024/0.2976, allocations: 96.09 kB / 380.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.2995, allocations: 1.301 MB / 381.9 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.2997, allocations: 0.8201 MB / 382.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.2999, allocations: 32.19 kB / 382.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2999, allocations: 0 / 382.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Templates: time 0.01075/0.3106, allocations: 5.88 MB / 388.7 MB, free: 12.63 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.0.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