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.001107/0.001107, allocations: 103 kB / 17.74 MB, free: 5.305 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.001176/0.001176, allocations: 198.5 kB / 18.67 MB, free: 4.383 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2209, allocations: 49.43 MB / 401.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00402/0.225, allocations: 3.116 MB / 404.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.2268, allocations: 0.9621 MB / 405.5 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002864/0.2271, allocations: 15.94 kB / 405.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.2275, allocations: 87.17 kB / 405.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.2278, allocations: 111.1 kB / 405.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000563/0.2284, allocations: 230.1 kB / 405.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005303/0.2289, allocations: 0.5146 MB / 406.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.2292, allocations: 165.2 kB / 406.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.2295, allocations: 199.1 kB / 406.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.2298, allocations: 214.9 kB / 407 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.23e-05/0.2298, allocations: 40 kB / 407 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.991e-05/0.2299, allocations: 40 kB / 407.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.23, allocations: 103.6 kB / 407.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.2302, allocations: 218.8 kB / 407.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004676/0.2307, allocations: 0.4916 MB / 407.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2307, allocations: 0 / 407.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2307, allocations: 3.938 kB / 407.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2307, allocations: 0 / 407.9 MB, free: 2.52 MB / 318.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.001269/0.232, allocations: 0.7639 MB / 408.6 MB, free: 1.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.232, allocations: 15.88 kB / 408.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.573e-05/0.2321, allocations: 52.28 kB / 408.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.2326, allocations: 367.7 kB / 409.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.2327, allocations: 29.38 kB / 409.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.707e-05/0.2327, allocations: 47.84 kB / 409.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008836/0.2336, allocations: 450.3 kB / 409.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.2337, allocations: 4 kB / 409.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.2337, allocations: 16 kB / 409.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2337, allocations: 12 kB / 409.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009938/0.2347, allocations: 383.6 kB / 410 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.2367, allocations: 1.559 MB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007985/0.2375, allocations: 318.6 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004469/0.238, allocations: 168.7 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.238, allocations: 0.5 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.2381, allocations: 38.56 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.2381, allocations: 0 / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003236/0.2413, allocations: 1.373 MB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.2414, allocations: 81.11 kB / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.2417, allocations: 361.5 kB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.2418, allocations: 33.7 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.2419, allocations: 248 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.881e-05/0.242, allocations: 110.3 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2422, allocations: 82.12 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2423, allocations: 350.7 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.2428, allocations: 174.5 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.2433, allocations: 248.8 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009097/0.2442, allocations: 395.9 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2442, allocations: 0 / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001143/0.2454, allocations: 496.7 kB / 416 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2454, allocations: 4 kB / 416 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2454, allocations: 7.938 kB / 416 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.2454, allocations: 4 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.2464, allocations: 215.9 kB / 416.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.248, allocations: 1.56 MB / 417.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.2483, allocations: 40.05 kB / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.2484, allocations: 16 kB / 417.8 MB, free: 8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005428/0.2489, allocations: 272.9 kB / 418.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004701/0.2494, allocations: 240.8 kB / 418.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008143/0.2502, allocations: 363.8 kB / 418.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.994e-06/0.2502, allocations: 0 / 418.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001043/0.2513, allocations: 480.8 kB / 419.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.2513, allocations: 8 kB / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.2513, allocations: 0 / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.474e-06/0.2513, allocations: 11.88 kB / 419.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.2518, allocations: 119.8 kB / 419.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.2519, allocations: 4 kB / 419.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.2522, allocations: 44.05 kB / 419.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.2522, allocations: 16 kB / 419.3 MB, free: 6.41 MB / 334.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.0001288/0.2523, allocations: 200.1 kB / 419.5 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.2524, allocations: 43.45 kB / 419.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.933e-05/0.2525, allocations: 48.25 kB / 419.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2525, allocations: 3.984 kB / 419.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2525, allocations: 0 / 419.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.2527, allocations: 132.6 kB / 419.7 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.2527, allocations: 8 kB / 419.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.2531, allocations: 35.95 kB / 419.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.2531, allocations: 19.97 kB / 419.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001338/0.2545, allocations: 488.5 kB / 420.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001517/0.256, allocations: 0.7334 MB / 421 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004354/0.2565, allocations: 163.9 kB / 421.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.2567, allocations: 247.2 kB / 421.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of Backend: time 4.81e-07/0.2567, allocations: 0 / 421.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.2586, allocations: 0.6348 MB / 422.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of SimCode: time 0.001888/0.2605, allocations: 1.408 MB / 423.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of Templates: time 0.01208/0.2726, allocations: 6.519 MB / 430 MB, free: 11.68 MB / 350.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/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_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches