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.0009549/0.0009554, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001139/0.001139, allocations: 182.4 kB / 17.19 MB, free: 5.906 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.395/1.395, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 12.89 kB / 300.7 MB, free: 5.938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00365/0.1083, allocations: 2.575 MB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1101, allocations: 0.9198 MB / 354.6 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.1103, allocations: 15.94 kB / 354.6 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.1106, allocations: 51.56 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.111, allocations: 138.5 kB / 354.8 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.1115, allocations: 167.8 kB / 355 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000434/0.1119, allocations: 343.9 kB / 355.3 MB, free: 7.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.1122, allocations: 135.6 kB / 355.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1123, allocations: 147.4 kB / 355.6 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1126, allocations: 171 kB / 355.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.1126, allocations: 16 kB / 355.8 MB, free: 7.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.381e-05/0.1127, allocations: 16 kB / 355.8 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.794e-05/0.1127, allocations: 71.67 kB / 355.9 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.396e-05/0.1128, allocations: 101.5 kB / 356 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.1132, allocations: 339.1 kB / 356.3 MB, free: 6.527 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.1132, allocations: 0 / 356.3 MB, free: 6.527 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1132, allocations: 0 / 356.3 MB, free: 6.527 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1132, allocations: 4 kB / 356.3 MB, free: 6.523 MB / 286.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.001222/0.1144, allocations: 0.717 MB / 357 MB, free: 5.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1145, allocations: 8.031 kB / 357 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.078e-05/0.1146, allocations: 47.44 kB / 357.1 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.115, allocations: 354.5 kB / 357.4 MB, free: 5.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.1151, allocations: 29 kB / 357.4 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.1151, allocations: 40 kB / 357.5 MB, free: 5.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009398/0.1161, allocations: 462.4 kB / 357.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.1161, allocations: 7.844 kB / 357.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.426e-05/0.1162, allocations: 16 kB / 358 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1162, allocations: 11.95 kB / 358 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009543/0.1172, allocations: 427.6 kB / 358.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.1194, allocations: 1.579 MB / 360 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000887/0.1203, allocations: 339.6 kB / 360.3 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.1203, allocations: 4 kB / 360.3 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.1204, allocations: 38.56 kB / 360.3 MB, free: 2.258 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 3.056e-06/0.1204, allocations: 0 / 360.3 MB, free: 2.258 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003246/0.1236, allocations: 1.511 MB / 361.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.1237, allocations: 85.09 kB / 361.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.124, allocations: 345.7 kB / 362.3 MB, free: 212 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1241, allocations: 29.7 kB / 362.3 MB, free: 176 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1243, allocations: 247.8 kB / 362.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.1244, allocations: 118.5 kB / 362.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.1244, allocations: 8 kB / 362.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1245, allocations: 358.7 kB / 363 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004426/0.125, allocations: 188.8 kB / 363.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.1255, allocations: 264.8 kB / 363.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.1259, allocations: 203.9 kB / 363.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1259, allocations: 0 / 363.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001057/0.127, allocations: 0.5165 MB / 364.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003387/0.1274, allocations: 0.7944 MB / 365 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1274, allocations: 0 / 365 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1274, allocations: 8 kB / 365 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008879/0.1283, allocations: 263.7 kB / 365.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.1298, allocations: 1.555 MB / 366.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.1302, allocations: 56.17 kB / 366.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.1302, allocations: 12 kB / 366.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.1302, allocations: 4 kB / 366.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009252/0.1312, allocations: 443.6 kB / 367.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1312, allocations: 3.984 kB / 367.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.36e-06/0.1312, allocations: 4 kB / 367.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.1317, allocations: 128 kB / 367.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1317, allocations: 7.938 kB / 367.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.132, allocations: 55.84 kB / 367.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.132, allocations: 12 kB / 367.5 MB, free: 10.73 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.000247/0.1323, allocations: 241 kB / 367.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.784e-05/0.1324, allocations: 35.53 kB / 367.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.566e-05/0.1325, allocations: 52.23 kB / 367.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1325, allocations: 4 kB / 367.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1325, allocations: 0 / 367.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1325, allocations: 3.953 kB / 367.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.1342, allocations: 0.958 MB / 368.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1342, allocations: 0 / 368.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.1346, allocations: 104 kB / 368.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.1347, allocations: 7.953 kB / 368.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.1347, allocations: 8 kB / 368.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1347, allocations: 4 kB / 368.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1347, allocations: 0 / 368.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.1362, allocations: 0.786 MB / 369.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1363, allocations: 136.7 kB / 369.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.1364, allocations: 8 kB / 369.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.1367, allocations: 47.95 kB / 369.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.972e-05/0.1368, allocations: 27.92 kB / 369.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.1368, allocations: 12.12 kB / 369.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.1371, allocations: 247.1 kB / 370.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1372, allocations: 4 kB / 370.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.1377, allocations: 132 kB / 370.3 MB, free: 7.785 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 0.0001381/0.1379, allocations: 107.2 kB / 370.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.1398, allocations: 0.7977 MB / 371.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1399, allocations: 0 / 371.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004642/0.1403, allocations: 200.1 kB / 371.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005831/0.1409, allocations: 107.6 kB / 371.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.1429, allocations: 1.203 MB / 372.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.1434, allocations: 0.8315 MB / 373.5 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002596/0.1436, allocations: 67.17 kB / 373.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.309e-05/0.1437, allocations: 31.44 kB / 373.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1437, allocations: 0 / 373.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of Templates: time 0.008087/0.1518, allocations: 4.102 MB / 377.7 MB, free: 320 kB / 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches