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.000723/0.0007231, allocations: 96.31 kB / 17.3 MB, free: 6.023 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.000774/0.000774, allocations: 171.6 kB / 18.2 MB, free: 5.418 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.632/1.632, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004597/0.0004599, allocations: 12 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1074, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003929/0.1114, allocations: 2.77 MB / 331.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1134, allocations: 0.9789 MB / 332.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.1136, allocations: 19.88 kB / 332.7 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.114, allocations: 67.48 kB / 332.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.1142, allocations: 83.25 kB / 332.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005201/0.1148, allocations: 207.7 kB / 333.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005004/0.1153, allocations: 498.9 kB / 333.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003135/0.1156, allocations: 157.1 kB / 333.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.1158, allocations: 155.2 kB / 333.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.116, allocations: 175 kB / 334 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.731e-05/0.1161, allocations: 16 kB / 334.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.278e-05/0.1162, allocations: 23.94 kB / 334.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.1163, allocations: 75.56 kB / 334.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.1164, allocations: 216.5 kB / 334.4 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.1168, allocations: 442.5 kB / 334.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1168, allocations: 0 / 334.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1168, allocations: 0 / 334.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.1169, allocations: 4 kB / 334.8 MB, free: 13.88 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.001227/0.1181, allocations: 0.7172 MB / 335.5 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1181, allocations: 8.031 kB / 335.5 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.004e-05/0.1182, allocations: 52.38 kB / 335.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.1187, allocations: 367.6 kB / 335.9 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.1187, allocations: 29.38 kB / 336 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.969e-05/0.1188, allocations: 44.27 kB / 336 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009081/0.1197, allocations: 466.7 kB / 336.5 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.1198, allocations: 7.938 kB / 336.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.871e-05/0.1198, allocations: 19.98 kB / 336.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1198, allocations: 11.98 kB / 336.5 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.1208, allocations: 415.7 kB / 336.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.1229, allocations: 1.583 MB / 338.5 MB, free: 9.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008467/0.1237, allocations: 346.5 kB / 338.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004631/0.1242, allocations: 192.7 kB / 339 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.1242, allocations: 7.938 kB / 339 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.1243, allocations: 30.56 kB / 339.1 MB, free: 9.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.1243, allocations: 0 / 339.1 MB, free: 9.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003475/0.1278, allocations: 1.517 MB / 340.6 MB, free: 7.785 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.1278, allocations: 89.05 kB / 340.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.1282, allocations: 361.6 kB / 341 MB, free: 7.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.1283, allocations: 29.7 kB / 341 MB, free: 7.281 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1284, allocations: 243.9 kB / 341.3 MB, free: 7.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.482e-05/0.1286, allocations: 110.3 kB / 341.4 MB, free: 6.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.188e-05/0.1286, allocations: 53.69 kB / 341.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1288, allocations: 346.8 kB / 341.8 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004759/0.1292, allocations: 188.8 kB / 342 MB, free: 6.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/0.1298, allocations: 268.8 kB / 342.2 MB, free: 6.043 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009767/0.1308, allocations: 443.3 kB / 342.7 MB, free: 5.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1308, allocations: 0 / 342.7 MB, free: 5.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001152/0.132, allocations: 0.5364 MB / 343.2 MB, free: 5.039 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/0.1321, allocations: 148.1 kB / 343.3 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.1321, allocations: 4 kB / 343.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.1321, allocations: 4 kB / 343.3 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009393/0.1331, allocations: 267.7 kB / 343.6 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.1348, allocations: 1.544 MB / 345.1 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.1352, allocations: 51.98 kB / 345.2 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1352, allocations: 16 kB / 345.2 MB, free: 2.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.27e-06/0.1352, allocations: 12 kB / 345.2 MB, free: 2.84 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009676/0.1362, allocations: 443.8 kB / 345.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-06/0.1362, allocations: 0 / 345.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.019e-06/0.1362, allocations: 4 kB / 345.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.1367, allocations: 131.8 kB / 345.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1368, allocations: 4 kB / 345.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.137, allocations: 48 kB / 345.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.1371, allocations: 15.98 kB / 345.9 MB, free: 2.207 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.0002409/0.1373, allocations: 241 kB / 346.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/0.1374, allocations: 35.53 kB / 346.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.212e-05/0.1375, allocations: 48.25 kB / 346.2 MB, free: 1.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.1375, allocations: 4 kB / 346.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1375, allocations: 7.922 kB / 346.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1375, allocations: 0 / 346.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.1393, allocations: 0.9572 MB / 347.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1393, allocations: 4 kB / 347.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004514/0.1398, allocations: 104 kB / 347.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1398, allocations: 0 / 347.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.1399, allocations: 15.88 kB / 347.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.1399, allocations: 4 kB / 347.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1399, allocations: 4 kB / 347.3 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.1415, allocations: 0.7405 MB / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.1416, allocations: 140.7 kB / 348.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.1417, allocations: 7.938 kB / 348.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.142, allocations: 51.95 kB / 348.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.1421, allocations: 19.97 kB / 348.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.1421, allocations: 8 kB / 348.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.1424, allocations: 255.2 kB / 348.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1424, allocations: 4 kB / 348.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005272/0.1429, allocations: 132 kB / 348.6 MB, free: 15.32 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.0001317/0.143, allocations: 115.1 kB / 348.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.1451, allocations: 0.7929 MB / 349.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1451, allocations: 4 kB / 349.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/0.1456, allocations: 200.1 kB / 349.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007563/0.1464, allocations: 101.4 kB / 349.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.1483, allocations: 1.267 MB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.1487, allocations: 0.8237 MB / 351.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002518/0.1489, allocations: 67.22 kB / 352 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.149, allocations: 27.44 kB / 352 MB, free: 11.86 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1491, allocations: 0 / 352 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Templates: time 0.008714/0.1578, allocations: 4.269 MB / 356.3 MB, free: 7.602 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/jenkins/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