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.0008472/0.0008474, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 192.1 kB / 17.9 MB, free: 5.938 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 / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002402/0.0002402, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09252, allocations: 51.52 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003601/0.09616, allocations: 2.64 MB / 361.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.09784, allocations: 0.9393 MB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.0981, allocations: 11.94 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.09839, allocations: 67.47 kB / 362.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.0986, allocations: 83.28 kB / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004749/0.09908, allocations: 178.8 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.09956, allocations: 463 kB / 363 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.09984, allocations: 135.5 kB / 363.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.1, allocations: 147.3 kB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.1003, allocations: 167.1 kB / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.1003, allocations: 16 kB / 363.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.649e-05/0.1004, allocations: 20 kB / 363.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.51e-05/0.1005, allocations: 71.67 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.494e-05/0.1006, allocations: 97.45 kB / 363.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.1009, allocations: 347.3 kB / 364 MB, free: 8.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1009, allocations: 0 / 364 MB, free: 8.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1009, allocations: 0 / 364 MB, free: 8.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1009, allocations: 0 / 364 MB, free: 8.266 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.001086/0.102, allocations: 0.7093 MB / 364.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.102, allocations: 15.97 kB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.061e-05/0.1021, allocations: 47.44 kB / 364.7 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.1025, allocations: 346.7 kB / 365.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.1026, allocations: 29 kB / 365.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.1026, allocations: 39.95 kB / 365.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000861/0.1035, allocations: 479.2 kB / 365.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1035, allocations: 3.906 kB / 365.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.313e-05/0.1036, allocations: 16 kB / 365.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.1036, allocations: 8 kB / 365.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009468/0.1046, allocations: 419.6 kB / 366 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.1065, allocations: 1.583 MB / 367.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.1073, allocations: 338.8 kB / 368 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.1077, allocations: 192.7 kB / 368.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.1077, allocations: 4 kB / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.1078, allocations: 34.56 kB / 368.2 MB, free: 3.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.1078, allocations: 0 / 368.2 MB, free: 3.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003022/0.1108, allocations: 1.514 MB / 369.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.1109, allocations: 110.8 kB / 369.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.1113, allocations: 345.7 kB / 370.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1113, allocations: 33.7 kB / 370.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.1115, allocations: 247.8 kB / 370.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.1116, allocations: 114.5 kB / 370.5 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.1117, allocations: 16 kB / 370.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1118, allocations: 346.8 kB / 370.9 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.1123, allocations: 188.7 kB / 371.1 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005295/0.1128, allocations: 277.6 kB / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004601/0.1133, allocations: 207.9 kB / 371.5 MB, free: 272 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1133, allocations: 0 / 371.5 MB, free: 272 kB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.1661/0.2794, allocations: 0.5135 MB / 372.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.803e-05/0.2795, allocations: 158.8 kB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.2796, allocations: 2.594 kB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.2796, allocations: 4.984 kB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009587/0.2806, allocations: 260.4 kB / 372.5 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.2819, allocations: 1.543 MB / 374 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003716/0.2823, allocations: 48.5 kB / 374.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.2823, allocations: 15.5 kB / 374.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.712e-06/0.2824, allocations: 3.188 kB / 374.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009707/0.2833, allocations: 443.7 kB / 374.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2834, allocations: 2.688 kB / 374.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-06/0.2834, allocations: 3.875 kB / 374.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/0.2839, allocations: 133.1 kB / 374.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2839, allocations: 3.828 kB / 374.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.2842, allocations: 43.25 kB / 374.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.2842, allocations: 14.47 kB / 374.7 MB, free: 17.69 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002193/0.2845, allocations: 254.6 kB / 375 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.831e-05/0.2845, allocations: 41.67 kB / 375 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.605e-05/0.2846, allocations: 45.61 kB / 375 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2846, allocations: 4.031 kB / 375.1 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2846, allocations: 0 / 375.1 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.2847, allocations: 3.375 kB / 375.1 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.2864, allocations: 0.9574 MB / 376 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2864, allocations: 2.031 kB / 376 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.2868, allocations: 97.67 kB / 376.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.2868, allocations: 7.531 kB / 376.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.2868, allocations: 11.53 kB / 376.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.2868, allocations: 6.703 kB / 376.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2869, allocations: 1.375 kB / 376.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.2882, allocations: 0.7423 MB / 376.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2884, allocations: 135.9 kB / 377 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.2884, allocations: 9.125 kB / 377 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.2887, allocations: 43.84 kB / 377.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.2888, allocations: 32.89 kB / 377.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2889, allocations: 14.61 kB / 377.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.2891, allocations: 243.3 kB / 377.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2891, allocations: 0 / 377.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005423/0.2897, allocations: 135.9 kB / 377.5 MB, free: 16.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.92e-05/0.2898, allocations: 105.7 kB / 377.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.2916, allocations: 0.7897 MB / 378.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2916, allocations: 5.375 kB / 378.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.2921, allocations: 201.1 kB / 378.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.2927, allocations: 88.66 kB / 378.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.2943, allocations: 1.218 MB / 379.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.2946, allocations: 0.8155 MB / 380.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002647/0.2949, allocations: 60.84 kB / 380.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.982e-05/0.295, allocations: 32.95 kB / 380.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.295, allocations: 0 / 380.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Templates: time 0.008198/0.3032, allocations: 4.12 MB / 384.9 MB, free: 14.52 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/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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches