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.0007785/0.0007782, allocations: 92.77 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008989/0.0008989, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.8 MB / 246.8 MB, free: 9.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.0002985, allocations: 8 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003878/0.1252, allocations: 2.763 MB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.1275, allocations: 0.9701 MB / 363 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.128, allocations: 15.88 kB / 363 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003984/0.1284, allocations: 71.47 kB / 363.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003722/0.1288, allocations: 83.34 kB / 363.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.1295, allocations: 207.4 kB / 363.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007014/0.1302, allocations: 495 kB / 363.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003607/0.1306, allocations: 157.2 kB / 364 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.1309, allocations: 155.1 kB / 364.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.1312, allocations: 179 kB / 364.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-05/0.1313, allocations: 19.94 kB / 364.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.1314, allocations: 16 kB / 364.4 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.1315, allocations: 71.67 kB / 364.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1317, allocations: 208.5 kB / 364.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004995/0.1322, allocations: 450.5 kB / 365.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1322, allocations: 0 / 365.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1322, allocations: 0 / 365.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.1323, allocations: 0 / 365.1 MB, free: 7.23 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.001397/0.1337, allocations: 0.7167 MB / 365.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1337, allocations: 8.031 kB / 365.8 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.1339, allocations: 52.38 kB / 365.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/0.1344, allocations: 355.7 kB / 366.2 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.1344, allocations: 25.38 kB / 366.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.389e-05/0.1345, allocations: 36.38 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009753/0.1355, allocations: 487.5 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.1355, allocations: 7.906 kB / 366.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.1355, allocations: 12 kB / 366.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.1356, allocations: 12 kB / 366.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.1366, allocations: 423.6 kB / 367.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.1388, allocations: 1.582 MB / 368.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008543/0.1397, allocations: 338.7 kB / 369.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004938/0.1402, allocations: 188.7 kB / 369.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.1402, allocations: 7.938 kB / 369.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.1403, allocations: 42.5 kB / 369.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.1403, allocations: 0 / 369.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00354/0.1438, allocations: 1.518 MB / 370.8 MB, free: 1.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.1439, allocations: 110.8 kB / 370.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.1443, allocations: 353.6 kB / 371.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.1444, allocations: 33.7 kB / 371.3 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1446, allocations: 239.9 kB / 371.6 MB, free: 384 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.011e-05/0.1447, allocations: 106.4 kB / 371.7 MB, free: 276 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.1448, allocations: 49.69 kB / 371.7 MB, free: 220 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.2034/0.3482, allocations: 350.7 kB / 372.1 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006922/0.3489, allocations: 183.5 kB / 372.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006322/0.3496, allocations: 286 kB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.3506, allocations: 433.1 kB / 372.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3506, allocations: 8.922 kB / 372.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001319/0.352, allocations: 0.5207 MB / 373.5 MB, free: 18.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.28e-05/0.3521, allocations: 154.2 kB / 373.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.3521, allocations: 9.828 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.3521, allocations: 4.344 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.3532, allocations: 260.3 kB / 373.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.3549, allocations: 1.538 MB / 375.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/0.3554, allocations: 52.03 kB / 375.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.3554, allocations: 15.48 kB / 375.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.3554, allocations: 6.781 kB / 375.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001395/0.3568, allocations: 443.3 kB / 375.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3568, allocations: 2.531 kB / 375.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.3569, allocations: 4.594 kB / 375.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.3574, allocations: 136.8 kB / 376.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3574, allocations: 8.906 kB / 376.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.3578, allocations: 47.06 kB / 376.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3578, allocations: 18.12 kB / 376.1 MB, free: 17.31 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.0002656/0.3581, allocations: 249.6 kB / 376.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.281e-05/0.3582, allocations: 40.67 kB / 376.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.3583, allocations: 50.5 kB / 376.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3583, allocations: 3.25 kB / 376.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3583, allocations: 1.781 kB / 376.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3584, allocations: 1.453 kB / 376.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.3602, allocations: 0.9622 MB / 377.4 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3602, allocations: 1.375 kB / 377.4 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.3607, allocations: 100.2 kB / 377.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.3607, allocations: 3.406 kB / 377.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.3607, allocations: 7.875 kB / 377.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3607, allocations: 1.984 kB / 377.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3607, allocations: 1.375 kB / 377.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.3624, allocations: 0.7518 MB / 378.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3625, allocations: 132.6 kB / 378.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.3626, allocations: 10.3 kB / 378.4 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000323/0.3629, allocations: 46.88 kB / 378.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.363, allocations: 23.02 kB / 378.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.363, allocations: 12.42 kB / 378.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002491/0.3633, allocations: 250.4 kB / 378.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3633, allocations: 1.406 kB / 378.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005899/0.3639, allocations: 137.2 kB / 378.9 MB, free: 16.23 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.0001373/0.364, allocations: 102.7 kB / 379 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.3663, allocations: 0.7958 MB / 379.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3663, allocations: 0 / 379.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005121/0.3668, allocations: 202.9 kB / 380 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007044/0.3675, allocations: 88.95 kB / 380.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.3696, allocations: 1.268 MB / 381.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.37, allocations: 0.8198 MB / 382.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.3703, allocations: 61.91 kB / 382.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.904e-05/0.3704, allocations: 33.39 kB / 382.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3704, allocations: 1.062 kB / 382.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01033/0.3807, allocations: 4.241 MB / 386.5 MB, free: 13.69 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches