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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 109.6 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.14 kB / 306.5 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08633, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00399/0.09035, allocations: 3.144 MB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.09209, allocations: 0.9817 MB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.09243, allocations: 11.94 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.09278, allocations: 67.48 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.09312, allocations: 87.33 kB / 361.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.09367, allocations: 203.7 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005439/0.09422, allocations: 0.5107 MB / 362.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.09451, allocations: 181.2 kB / 362.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.09475, allocations: 195.2 kB / 362.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.09499, allocations: 206.9 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.449e-05/0.09506, allocations: 40 kB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.935e-05/0.09513, allocations: 44 kB / 362.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.47e-05/0.09523, allocations: 95.69 kB / 362.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.0954, allocations: 218.7 kB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.09583, allocations: 494.5 kB / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.09584, allocations: 0 / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09585, allocations: 0 / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.09586, allocations: 0 / 363.5 MB, free: 7.828 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.001227/0.09709, allocations: 0.7678 MB / 364.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.09714, allocations: 12.03 kB / 364.3 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.466e-05/0.09722, allocations: 74.72 kB / 364.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.186e-05/0.09731, allocations: 52.36 kB / 364.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.09769, allocations: 355.7 kB / 364.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.09773, allocations: 29.38 kB / 364.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.09779, allocations: 40.36 kB / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008094/0.09861, allocations: 459.3 kB / 365.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.09864, allocations: 7.844 kB / 365.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.09868, allocations: 16 kB / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.0987, allocations: 11.98 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008793/0.09958, allocations: 371.7 kB / 365.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.1016, allocations: 1.575 MB / 367.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007459/0.1023, allocations: 310.7 kB / 367.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/0.1027, allocations: 172.6 kB / 367.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.1028, allocations: 4 kB / 367.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.1028, allocations: 42.55 kB / 367.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.1028, allocations: 0 / 367.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003004/0.1058, allocations: 1.377 MB / 369.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.1059, allocations: 102.8 kB / 369.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.1062, allocations: 357.6 kB / 369.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1063, allocations: 33.7 kB / 369.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1064, allocations: 252 kB / 369.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-05/0.1065, allocations: 110.4 kB / 370 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.1066, allocations: 82.03 kB / 370.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1068, allocations: 350.7 kB / 370.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/0.1072, allocations: 174.5 kB / 370.6 MB, free: 372 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.1077, allocations: 253.7 kB / 370.8 MB, free: 84 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1573/0.265, allocations: 387.8 kB / 371.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2651, allocations: 1.375 kB / 371.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001219/0.2663, allocations: 493.8 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2663, allocations: 6.219 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2663, allocations: 2.969 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.2664, allocations: 7.219 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008962/0.2673, allocations: 212.1 kB / 371.9 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.2687, allocations: 1.567 MB / 373.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.2691, allocations: 39.34 kB / 373.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.2691, allocations: 21.83 kB / 373.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005088/0.2696, allocations: 271.1 kB / 373.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004405/0.2701, allocations: 241.8 kB / 374 MB, free: 18.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007348/0.2708, allocations: 376 kB / 374.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.513e-06/0.2709, allocations: 0 / 374.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001015/0.2719, allocations: 471.6 kB / 374.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.2719, allocations: 10.22 kB / 374.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2719, allocations: 6.188 kB / 374.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.215e-06/0.2719, allocations: 4.547 kB / 374.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.2724, allocations: 116.3 kB / 375 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.2724, allocations: 9.359 kB / 375 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003087/0.2727, allocations: 36.38 kB / 375 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.2728, allocations: 14.41 kB / 375.1 MB, free: 18.27 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.000116/0.2729, allocations: 209.5 kB / 375.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.101e-05/0.273, allocations: 43.42 kB / 375.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.68e-05/0.2731, allocations: 47.03 kB / 375.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2731, allocations: 3.938 kB / 375.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2731, allocations: 0 / 375.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2731, allocations: 1.828 kB / 375.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.2746, allocations: 0.9172 MB / 376.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2746, allocations: 1.375 kB / 376.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004043/0.275, allocations: 88.11 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.275, allocations: 1.375 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.275, allocations: 12.77 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.275, allocations: 7.203 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2751, allocations: 1.375 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.2763, allocations: 0.6709 MB / 377.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.2765, allocations: 136.3 kB / 377.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.2765, allocations: 7.594 kB / 377.2 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.2768, allocations: 39.47 kB / 377.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.983e-05/0.2769, allocations: 32.67 kB / 377.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.2769, allocations: 9.406 kB / 377.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.2772, allocations: 248.3 kB / 377.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2772, allocations: 0 / 377.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005293/0.2777, allocations: 133.6 kB / 377.7 MB, free: 16.88 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.001435/0.2792, allocations: 1.212 MB / 378.9 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2811, allocations: 0.7031 MB / 379.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.2811, allocations: 1.375 kB / 379.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000427/0.2816, allocations: 190.1 kB / 379.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.2822, allocations: 100.1 kB / 379.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/0.2879, allocations: 4.192 MB / 384 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.2882, allocations: 0.8158 MB / 384.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.2885, allocations: 62.52 kB / 384.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.2887, allocations: 141.3 kB / 385.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2887, allocations: 1.406 kB / 385.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6667/0.9554, allocations: 8.332 MB / 393.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/0.9556, allocations: 216.8 kB / 393.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/3.111, allocations: 0 / 393.6 MB, free: 9.109 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > 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.0.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