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.001287/0.001287, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247.5 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 62.59 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1143, allocations: 50.53 MB / 358.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004845/0.1192, allocations: 3.117 MB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1213, allocations: 0.9972 MB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.1215, allocations: 19.88 kB / 362.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003734/0.1219, allocations: 83.23 kB / 362.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.1222, allocations: 99.08 kB / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.1228, allocations: 223.6 kB / 362.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006201/0.1235, allocations: 0.5107 MB / 363.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.1238, allocations: 181.2 kB / 363.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.1241, allocations: 195.2 kB / 363.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.1244, allocations: 207 kB / 363.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.49e-05/0.1245, allocations: 40 kB / 363.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.237e-05/0.1246, allocations: 40 kB / 363.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1247, allocations: 103.7 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1249, allocations: 214.8 kB / 364.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005568/0.1255, allocations: 490.4 kB / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1255, allocations: 0 / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1255, allocations: 4 kB / 364.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1255, allocations: 0 / 364.6 MB, free: 7.613 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.00145/0.127, allocations: 0.7639 MB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1271, allocations: 12.03 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1272, allocations: 48.38 kB / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.1277, allocations: 359.7 kB / 365.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.1277, allocations: 29.38 kB / 365.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.711e-05/0.1278, allocations: 36.38 kB / 365.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.1287, allocations: 459.5 kB / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.1288, allocations: 7.906 kB / 366.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.759e-05/0.1288, allocations: 16 kB / 366.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1288, allocations: 8 kB / 366.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.1299, allocations: 375.6 kB / 366.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1322, allocations: 1.583 MB / 368.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008904/0.1331, allocations: 315.2 kB / 368.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/0.1335, allocations: 160.8 kB / 368.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.264e-05/0.1336, allocations: 7.938 kB / 368.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.1336, allocations: 30.56 kB / 368.8 MB, free: 3.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.1336, allocations: 4 kB / 368.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003514/0.1372, allocations: 1.385 MB / 370.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.1372, allocations: 110.8 kB / 370.3 MB, free: 1.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.1377, allocations: 353.6 kB / 370.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.1377, allocations: 33.7 kB / 370.7 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.1379, allocations: 243.9 kB / 370.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.1381, allocations: 118.5 kB / 371 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.1382, allocations: 82.03 kB / 371.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1384, allocations: 346.8 kB / 371.5 MB, free: 424 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/0.1389, allocations: 170.5 kB / 371.6 MB, free: 248 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1736/0.3125, allocations: 259.1 kB / 371.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.3136, allocations: 390.4 kB / 372.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3136, allocations: 1.516 kB / 372.3 MB, free: 20.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001226/0.3149, allocations: 488.1 kB / 372.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3149, allocations: 5.594 kB / 372.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3149, allocations: 8.562 kB / 372.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.64e-05/0.3149, allocations: 3.875 kB / 372.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009454/0.3159, allocations: 214.4 kB / 373 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.3174, allocations: 1.577 MB / 374.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.3178, allocations: 37.67 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.3178, allocations: 15.03 kB / 374.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005406/0.3184, allocations: 275.5 kB / 374.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004422/0.3188, allocations: 241.9 kB / 375.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007985/0.3196, allocations: 374.6 kB / 375.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.3196, allocations: 0.7188 kB / 375.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001086/0.3207, allocations: 465.5 kB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3207, allocations: 8.219 kB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3208, allocations: 11.59 kB / 375.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.093e-06/0.3208, allocations: 4.344 kB / 376 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.3213, allocations: 123.1 kB / 376.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3213, allocations: 5.641 kB / 376.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.3216, allocations: 36.59 kB / 376.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.3216, allocations: 15.03 kB / 376.1 MB, free: 18.25 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.0001302/0.3218, allocations: 201.9 kB / 376.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.3219, allocations: 45.28 kB / 376.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.263e-05/0.322, allocations: 47.23 kB / 376.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.322, allocations: 3.531 kB / 376.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.322, allocations: 1.406 kB / 376.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.322, allocations: 1.969 kB / 376.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.3235, allocations: 0.9214 MB / 377.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3236, allocations: 2.531 kB / 377.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.324, allocations: 87.81 kB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.324, allocations: 3.406 kB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.3241, allocations: 7.625 kB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.3241, allocations: 3.359 kB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.3241, allocations: 1.375 kB / 377.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.3254, allocations: 0.6786 MB / 378.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.3256, allocations: 134.2 kB / 378.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.306e-05/0.3256, allocations: 12.58 kB / 378.3 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.3259, allocations: 33.84 kB / 378.3 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.326, allocations: 32.31 kB / 378.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.326, allocations: 6.875 kB / 378.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.3263, allocations: 252.7 kB / 378.6 MB, free: 16.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3263, allocations: 0 / 378.6 MB, free: 16.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005606/0.3269, allocations: 134.5 kB / 378.7 MB, free: 16.84 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.0001028/0.327, allocations: 104.4 kB / 378.8 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.329, allocations: 0.708 MB / 379.5 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.329, allocations: 0 / 379.5 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004644/0.3295, allocations: 183.7 kB / 379.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.3302, allocations: 102.9 kB / 379.8 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3319, allocations: 1.052 MB / 380.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.3322, allocations: 0.8132 MB / 381.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.3323, allocations: 31.81 kB / 381.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3323, allocations: 4 kB / 381.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Templates: time 0.009376/0.3417, allocations: 5.928 MB / 387.6 MB, free: 13.43 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches