Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001188/0.001188, allocations: 108.6 kB / 17.93 MB, free: 5.535 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.001257/0.001257, allocations: 189.8 kB / 18.86 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 224.7 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 48.16 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09313/0.09429, allocations: 46.62 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004478/0.0988, allocations: 3.16 MB / 330.6 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1008, allocations: 0.9904 MB / 331.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.1011, allocations: 19.88 kB / 331.6 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000358/0.1014, allocations: 63.5 kB / 331.7 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.1017, allocations: 91.31 kB / 331.7 MB, free: 460 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.1023, allocations: 199.8 kB / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005589/0.1029, allocations: 0.5184 MB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000313/0.1032, allocations: 169.3 kB / 332.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.1034, allocations: 203.1 kB / 332.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.1037, allocations: 214.9 kB / 333 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.139e-05/0.1037, allocations: 40 kB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.846e-05/0.1038, allocations: 40 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.998e-05/0.1039, allocations: 99.67 kB / 333.2 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.1041, allocations: 218.8 kB / 333.4 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.1045, allocations: 371.5 kB / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1045, allocations: 4 kB / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1045, allocations: 0 / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.1045, allocations: 0 / 333.8 MB, free: 14.39 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.001258/0.1058, allocations: 0.7755 MB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1058, allocations: 11.89 kB / 334.6 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.1059, allocations: 52.38 kB / 334.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.1063, allocations: 359.6 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.1064, allocations: 29.38 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.1064, allocations: 44.28 kB / 335 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008226/0.1073, allocations: 450.7 kB / 335.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.1073, allocations: 4 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.1073, allocations: 19.94 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1074, allocations: 11.98 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008847/0.1082, allocations: 375.6 kB / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.1102, allocations: 1.582 MB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007696/0.111, allocations: 314.6 kB / 337.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003891/0.1114, allocations: 156.8 kB / 337.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.1115, allocations: 7.938 kB / 337.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.1115, allocations: 38.56 kB / 338 MB, free: 9.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.1115, allocations: 4 kB / 338 MB, free: 9.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003013/0.1145, allocations: 1.372 MB / 339.4 MB, free: 8.504 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.1146, allocations: 85.05 kB / 339.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.115, allocations: 365.6 kB / 339.8 MB, free: 8.035 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.115, allocations: 33.7 kB / 339.8 MB, free: 7.996 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1152, allocations: 239.9 kB / 340.1 MB, free: 7.758 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.377e-05/0.1153, allocations: 122.4 kB / 340.2 MB, free: 7.637 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1154, allocations: 78.03 kB / 340.3 MB, free: 7.555 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1155, allocations: 350.8 kB / 340.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.1159, allocations: 174.5 kB / 340.8 MB, free: 7.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.1164, allocations: 252.8 kB / 341 MB, free: 6.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008172/0.1172, allocations: 395.3 kB / 341.4 MB, free: 6.336 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1173, allocations: 0 / 341.4 MB, free: 6.336 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001035/0.1183, allocations: 489.3 kB / 341.9 MB, free: 5.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1183, allocations: 8 kB / 341.9 MB, free: 5.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1183, allocations: 4.219 kB / 341.9 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1184, allocations: 4 kB / 341.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008226/0.1192, allocations: 215.7 kB / 342.1 MB, free: 5.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.1208, allocations: 1.576 MB / 343.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.1212, allocations: 39.98 kB / 343.7 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.1212, allocations: 16 kB / 343.7 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005586/0.1218, allocations: 277 kB / 344 MB, free: 3.582 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004269/0.1222, allocations: 236.8 kB / 344.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007382/0.123, allocations: 375.3 kB / 344.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.653e-06/0.123, allocations: 0 / 344.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000937/0.1239, allocations: 469.1 kB / 345.1 MB, free: 2.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.1239, allocations: 7.984 kB / 345.1 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1239, allocations: 4 kB / 345.1 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.33e-06/0.124, allocations: 4 kB / 345.1 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.1244, allocations: 120 kB / 345.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.1244, allocations: 7.938 kB / 345.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.1247, allocations: 39.95 kB / 345.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.1248, allocations: 12 kB / 345.3 MB, free: 2.27 MB / 286.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.000172/0.125, allocations: 200.1 kB / 345.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-05/0.125, allocations: 43.53 kB / 345.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.855e-05/0.1251, allocations: 44.25 kB / 345.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1252, allocations: 7.938 kB / 345.5 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1252, allocations: 0 / 345.5 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.1252, allocations: 3.984 kB / 345.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.1268, allocations: 0.9259 MB / 346.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1269, allocations: 0 / 346.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.1273, allocations: 87.98 kB / 346.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.1273, allocations: 4 kB / 346.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.1273, allocations: 12 kB / 346.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1273, allocations: 0 / 346.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1273, allocations: 4 kB / 346.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.1286, allocations: 0.6735 MB / 347.2 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.1288, allocations: 136.7 kB / 347.4 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.1288, allocations: 15.92 kB / 347.4 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.1291, allocations: 27.97 kB / 347.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.1292, allocations: 23.97 kB / 347.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.1292, allocations: 7.984 kB / 347.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002513/0.1295, allocations: 255.2 kB / 347.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1295, allocations: 0 / 347.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005564/0.1301, allocations: 139.9 kB / 347.8 MB, free: 15.56 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.000124/0.1302, allocations: 107.1 kB / 347.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.132, allocations: 0.7115 MB / 348.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.132, allocations: 0 / 348.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.1325, allocations: 176.5 kB / 348.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007138/0.1332, allocations: 113.3 kB / 348.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.1351, allocations: 1.207 MB / 350.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.1355, allocations: 0.8195 MB / 351 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1356, allocations: 39.42 kB / 351 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1356, allocations: 3.938 kB / 351 MB, free: 12.31 MB / 302.1 MB Notification: Performance of Templates: time 0.008404/0.144, allocations: 5.987 MB / 357 MB, free: 6.316 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches