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.001769/0.001769, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2399, allocations: 50.56 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004555/0.2445, allocations: 3.131 MB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.2466, allocations: 0.9931 MB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.2469, allocations: 15.94 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003915/0.2473, allocations: 87.17 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002621/0.2477, allocations: 103.1 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006/0.2483, allocations: 223.7 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006032/0.2489, allocations: 0.5185 MB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.2492, allocations: 173.2 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.2495, allocations: 195.1 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.2497, allocations: 210.9 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.253e-05/0.2498, allocations: 44 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.326e-05/0.2499, allocations: 44 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.25, allocations: 95.69 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.2503, allocations: 218.7 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005891/0.2509, allocations: 0.4891 MB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2509, allocations: 3.984 kB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2509, allocations: 0 / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.2509, allocations: 0 / 415.3 MB, free: 10.91 MB / 334.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.001406/0.2523, allocations: 0.783 MB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2524, allocations: 8.031 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.278e-05/0.2525, allocations: 70.72 kB / 416.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.936e-05/0.2526, allocations: 56.61 kB / 416.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.2531, allocations: 372 kB / 416.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.2532, allocations: 29.38 kB / 416.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.359e-05/0.2532, allocations: 36.38 kB / 416.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.2542, allocations: 459.3 kB / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.2543, allocations: 15.88 kB / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.2543, allocations: 16 kB / 417.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.2543, allocations: 8 kB / 417.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.2554, allocations: 379.6 kB / 417.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.2576, allocations: 1.556 MB / 419.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008834/0.2585, allocations: 311.8 kB / 419.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004781/0.259, allocations: 168.6 kB / 419.6 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.259, allocations: 4 kB / 419.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.259, allocations: 38.56 kB / 419.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 5.38e-06/0.2591, allocations: 0 / 419.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003535/0.2626, allocations: 1.385 MB / 421 MB, free: 4.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.2627, allocations: 106.8 kB / 421.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.2631, allocations: 357.6 kB / 421.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.2632, allocations: 37.7 kB / 421.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.2634, allocations: 252.4 kB / 421.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.708e-05/0.2635, allocations: 118.9 kB / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2636, allocations: 82.06 kB / 421.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2638, allocations: 350.7 kB / 422.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004963/0.2643, allocations: 174.5 kB / 422.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005666/0.2649, allocations: 257.7 kB / 422.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009984/0.2659, allocations: 388 kB / 423.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2659, allocations: 0 / 423.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001283/0.2672, allocations: 496.9 kB / 423.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.2672, allocations: 8.219 kB / 423.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2672, allocations: 4 kB / 423.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.2673, allocations: 4 kB / 423.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009218/0.2682, allocations: 215.7 kB / 423.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.2701, allocations: 1.58 MB / 425.4 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/0.2704, allocations: 39.95 kB / 425.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.2705, allocations: 16 kB / 425.4 MB, free: 228 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005723/0.2711, allocations: 273 kB / 425.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005016/0.2716, allocations: 241.7 kB / 425.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000862/0.2725, allocations: 375.7 kB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.2725, allocations: 0 / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001077/0.2735, allocations: 476.9 kB / 426.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.2736, allocations: 4 kB / 426.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.2736, allocations: 4 kB / 426.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.48e-06/0.2736, allocations: 4 kB / 426.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005043/0.2741, allocations: 128 kB / 426.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2741, allocations: 4 kB / 426.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003348/0.2745, allocations: 35.95 kB / 426.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.2745, allocations: 16 kB / 426.9 MB, free: 14.62 MB / 350.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.0001649/0.2747, allocations: 196.2 kB / 427.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.398e-05/0.2747, allocations: 47.72 kB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.815e-05/0.2748, allocations: 52.17 kB / 427.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2749, allocations: 4 kB / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2749, allocations: 0 / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2749, allocations: 0 / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.2767, allocations: 0.9155 MB / 428.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2767, allocations: 3.938 kB / 428.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004336/0.2771, allocations: 83.92 kB / 428.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2771, allocations: 4.125 kB / 428.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.2772, allocations: 8 kB / 428.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.2772, allocations: 7.938 kB / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2772, allocations: 0 / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.2788, allocations: 0.6711 MB / 428.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.2789, allocations: 144.8 kB / 429.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.279, allocations: 16.06 kB / 429.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.2793, allocations: 39.89 kB / 429.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.2794, allocations: 23.97 kB / 429.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.2795, allocations: 8 kB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002997/0.2798, allocations: 255.1 kB / 429.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2798, allocations: 0 / 429.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005686/0.2803, allocations: 132 kB / 429.5 MB, free: 11.91 MB / 350.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.001909/0.2823, allocations: 1.216 MB / 430.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.2844, allocations: 0.6913 MB / 431.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.2844, allocations: 0 / 431.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005121/0.2849, allocations: 179.8 kB / 431.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007121/0.2857, allocations: 107.7 kB / 431.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006678/0.2923, allocations: 4.008 MB / 435.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.2929, allocations: 0.8233 MB / 436.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002903/0.2932, allocations: 63.23 kB / 436.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.2935, allocations: 143.4 kB / 436.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2935, allocations: 0 / 436.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.3299, allocations: 8.677 MB / 445.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.74, allocations: 15.31 kB / 445.4 MB, free: 11.91 MB / 366.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.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