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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 114.4 kB / 17.73 MB, free: 5.34 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.001549/0.001549, allocations: 187.1 kB / 18.66 MB, free: 4.414 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.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001657/0.001657, allocations: 44.16 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09643, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004617/0.1011, allocations: 3.125 MB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.1029, allocations: 1.006 MB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.1031, allocations: 15.88 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.1035, allocations: 87.17 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.1037, allocations: 111.1 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.1043, allocations: 227.6 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1629/0.2672, allocations: 0.5224 MB / 379.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004143/0.2676, allocations: 171.5 kB / 379.9 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003319/0.268, allocations: 195 kB / 380.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.2682, allocations: 206 kB / 380.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.503e-05/0.2683, allocations: 40.72 kB / 380.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.2684, allocations: 41.69 kB / 380.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.2685, allocations: 110.9 kB / 380.5 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.2687, allocations: 214.2 kB / 380.7 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006106/0.2693, allocations: 0.4996 MB / 381.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2693, allocations: 0 / 381.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2693, allocations: 0 / 381.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.2694, allocations: 0 / 381.2 MB, free: 9.027 MB / 318.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.001253/0.2706, allocations: 0.7829 MB / 382 MB, free: 8.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2707, allocations: 10.38 kB / 382 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.613e-05/0.2707, allocations: 72.95 kB / 382 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.2709, allocations: 54.8 kB / 382.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.2714, allocations: 385.3 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.2715, allocations: 25.69 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.017e-05/0.2716, allocations: 39.48 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2726, allocations: 450.9 kB / 383 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.2726, allocations: 5.453 kB / 383 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.2727, allocations: 18.22 kB / 383 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.2727, allocations: 9.25 kB / 383 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2737, allocations: 377.5 kB / 383.4 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2757, allocations: 1.566 MB / 384.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/0.2765, allocations: 315.8 kB / 385.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.2769, allocations: 161.9 kB / 385.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.2769, allocations: 6.969 kB / 385.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.277, allocations: 39.66 kB / 385.5 MB, free: 7.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.063e-06/0.277, allocations: 4 kB / 385.5 MB, free: 7.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003159/0.2801, allocations: 1.397 MB / 386.9 MB, free: 6.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.2802, allocations: 80.48 kB / 386.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000349/0.2805, allocations: 362.3 kB / 387.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.2806, allocations: 35.02 kB / 387.3 MB, free: 6.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.2807, allocations: 249.2 kB / 387.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.589e-05/0.2808, allocations: 120.4 kB / 387.7 MB, free: 5.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.2809, allocations: 80.33 kB / 387.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.187e-05/0.281, allocations: 354.1 kB / 388.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/0.2814, allocations: 168.1 kB / 388.3 MB, free: 5.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004937/0.2819, allocations: 249.2 kB / 388.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008628/0.2828, allocations: 400.3 kB / 388.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2828, allocations: 0 / 388.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001108/0.2839, allocations: 0.4884 MB / 389.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.284, allocations: 6.406 kB / 389.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.284, allocations: 1.281 kB / 389.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.284, allocations: 10.19 kB / 389.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009116/0.2849, allocations: 205.5 kB / 389.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.2864, allocations: 1.578 MB / 391.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/0.2868, allocations: 34.48 kB / 391.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.2868, allocations: 16.45 kB / 391.2 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005673/0.2874, allocations: 270 kB / 391.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004825/0.2879, allocations: 237.7 kB / 391.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008037/0.2887, allocations: 384.2 kB / 392.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.2887, allocations: 0 / 392.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009794/0.2897, allocations: 469.9 kB / 392.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2897, allocations: 7.234 kB / 392.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2898, allocations: 3.219 kB / 392.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.851e-06/0.2898, allocations: 3.75 kB / 392.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.2903, allocations: 119.2 kB / 392.7 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2903, allocations: 9.953 kB / 392.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.2906, allocations: 38.08 kB / 392.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.2906, allocations: 16.67 kB / 392.8 MB, free: 2.715 MB / 318.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.0001145/0.2907, allocations: 205.4 kB / 393 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.2908, allocations: 39.3 kB / 393 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.77e-05/0.2909, allocations: 50.7 kB / 393.1 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2909, allocations: 9.047 kB / 393.1 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2909, allocations: 4 kB / 393.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2909, allocations: 1.406 kB / 393.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.2925, allocations: 0.9145 MB / 394 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.2925, allocations: 2.359 kB / 394 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.2929, allocations: 85.73 kB / 394.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2929, allocations: 2.906 kB / 394.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.293, allocations: 7.594 kB / 394.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.293, allocations: 8.969 kB / 394.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.293, allocations: 4.328 kB / 394.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.2944, allocations: 0.669 MB / 394.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.2945, allocations: 139.8 kB / 394.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.681e-05/0.2946, allocations: 12.36 kB / 394.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.2949, allocations: 32.58 kB / 394.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.029e-05/0.295, allocations: 27.62 kB / 395 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.295, allocations: 10.56 kB / 395 MB, free: 1.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.2952, allocations: 252.3 kB / 395.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.345e-06/0.2952, allocations: 0 / 395.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000525/0.2958, allocations: 145.2 kB / 395.4 MB, free: 1.266 MB / 318.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.00153/0.2973, allocations: 1.216 MB / 396.6 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.2992, allocations: 0.6903 MB / 397.3 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2992, allocations: 3.938 kB / 397.3 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.2997, allocations: 181.9 kB / 397.5 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006529/0.3004, allocations: 99.05 kB / 397.5 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006477/0.3069, allocations: 4.038 MB / 401.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.3074, allocations: 0.8175 MB / 402.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003064/0.3077, allocations: 65.2 kB / 402.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.308, allocations: 146.9 kB / 402.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.308, allocations: 0 / 402.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.3429, allocations: 8.803 MB / 411.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.4, allocations: 1.375 kB / 411.4 MB, free: 9.043 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches