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.001194/0.001194, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 60.47 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1084, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00486/0.1132, allocations: 3.114 MB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1152, allocations: 0.997 MB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.1155, allocations: 15.94 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.1159, allocations: 87.17 kB / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.1161, allocations: 107.1 kB / 363.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.1167, allocations: 223 kB / 363.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005241/0.1172, allocations: 0.5146 MB / 363.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.1175, allocations: 181.2 kB / 364.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.1177, allocations: 195.1 kB / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.118, allocations: 210.9 kB / 364.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.884e-05/0.1181, allocations: 40 kB / 364.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.913e-05/0.1181, allocations: 44 kB / 364.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.1182, allocations: 99.67 kB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.1184, allocations: 214.8 kB / 364.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004641/0.1189, allocations: 0.4903 MB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1189, allocations: 0 / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1189, allocations: 0 / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1189, allocations: 4 kB / 365.4 MB, free: 6.785 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.001263/0.1202, allocations: 0.7639 MB / 366.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1202, allocations: 8.031 kB / 366.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.1203, allocations: 48.38 kB / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.1209, allocations: 371.7 kB / 366.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.1209, allocations: 33.38 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.089e-05/0.121, allocations: 36.38 kB / 366.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008661/0.1219, allocations: 455.5 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.1219, allocations: 11.91 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/0.122, allocations: 16 kB / 367.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.122, allocations: 8 kB / 367.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009063/0.1229, allocations: 379.6 kB / 367.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.1249, allocations: 1.567 MB / 369.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007545/0.1256, allocations: 304.3 kB / 369.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.126, allocations: 168.8 kB / 369.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.1261, allocations: 7.938 kB / 369.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.1261, allocations: 34.5 kB / 369.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.1261, allocations: 4 kB / 369.6 MB, free: 2.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002967/0.1291, allocations: 1.389 MB / 371 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.1292, allocations: 110.8 kB / 371.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.1295, allocations: 357.6 kB / 371.4 MB, free: 416 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.1296, allocations: 33.7 kB / 371.4 MB, free: 376 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.1297, allocations: 235.9 kB / 371.7 MB, free: 136 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.318e-05/0.1298, allocations: 118.5 kB / 371.8 MB, free: 16 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1906/0.3205, allocations: 76.55 kB / 371.9 MB, free: 20.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.3207, allocations: 353.1 kB / 372.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000695/0.3214, allocations: 175.7 kB / 372.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007045/0.3221, allocations: 259.3 kB / 372.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.3232, allocations: 390.6 kB / 373 MB, free: 19.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3233, allocations: 0.9375 kB / 373 MB, free: 19.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001501/0.3248, allocations: 490.9 kB / 373.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.3248, allocations: 9.375 kB / 373.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3248, allocations: 2.406 kB / 373.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.3249, allocations: 6.766 kB / 373.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/0.3258, allocations: 206.4 kB / 373.7 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.3274, allocations: 1.574 MB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.3278, allocations: 35.62 kB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.3278, allocations: 15.77 kB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005572/0.3284, allocations: 271.7 kB / 375.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004653/0.3288, allocations: 244.1 kB / 375.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008149/0.3297, allocations: 370.7 kB / 376.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.374e-06/0.3297, allocations: 0.5 kB / 376.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009818/0.3307, allocations: 478.4 kB / 376.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3307, allocations: 6.203 kB / 376.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3307, allocations: 6.688 kB / 376.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.523e-06/0.3307, allocations: 4.125 kB / 376.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.3312, allocations: 117 kB / 376.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.3312, allocations: 4.125 kB / 376.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.3316, allocations: 42.16 kB / 376.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.3316, allocations: 15.8 kB / 376.9 MB, free: 17.88 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.0001486/0.3318, allocations: 217.9 kB / 377.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-05/0.3318, allocations: 40.89 kB / 377.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.3319, allocations: 46.48 kB / 377.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.332, allocations: 3.266 kB / 377.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.332, allocations: 1.375 kB / 377.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.332, allocations: 2.156 kB / 377.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.3337, allocations: 0.9192 MB / 378.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3337, allocations: 1.312 kB / 378.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.3341, allocations: 86.48 kB / 378.2 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3341, allocations: 3.141 kB / 378.2 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.3342, allocations: 8.344 kB / 378.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.3342, allocations: 2.141 kB / 378.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3342, allocations: 5.188 kB / 378.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.3355, allocations: 0.6723 MB / 378.9 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.3357, allocations: 140.4 kB / 379 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.3358, allocations: 8.219 kB / 379 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.336, allocations: 36.56 kB / 379 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.3362, allocations: 27.86 kB / 379.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3362, allocations: 10.28 kB / 379.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000281/0.3365, allocations: 246.2 kB / 379.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3365, allocations: 0 / 379.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005375/0.337, allocations: 137.8 kB / 379.5 MB, free: 16.47 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.000126/0.3371, allocations: 110.5 kB / 379.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.339, allocations: 0.6888 MB / 380.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.339, allocations: 4 kB / 380.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.3394, allocations: 182 kB / 380.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.3401, allocations: 108.1 kB / 380.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.3419, allocations: 0.9965 MB / 381.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.3422, allocations: 0.8156 MB / 382.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.3424, allocations: 64.66 kB / 382.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.594e-05/0.3425, allocations: 29.88 kB / 382.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3425, allocations: 1.375 kB / 382.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Templates: time 0.01047/0.353, allocations: 4.632 MB / 387.1 MB, free: 13.86 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 -s cvode -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