Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_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.001429/0.001429, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.00177/0.00177, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 47.56 kB / 300.2 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1033, allocations: 49.44 MB / 349.7 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005177/0.1085, allocations: 3.14 MB / 352.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.1109, allocations: 0.9505 MB / 353.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005458/0.1114, allocations: 15.94 kB / 353.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004537/0.1119, allocations: 63.5 kB / 353.8 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003035/0.1122, allocations: 91.31 kB / 353.9 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.1129, allocations: 208.5 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/0.1134, allocations: 0.5146 MB / 354.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.1137, allocations: 165.2 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.1139, allocations: 199.2 kB / 355 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1142, allocations: 210.9 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.1143, allocations: 40 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.275e-05/0.1143, allocations: 47.94 kB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1145, allocations: 99.67 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1146, allocations: 210.8 kB / 355.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.1151, allocations: 482.6 kB / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1151, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1151, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1151, allocations: 0 / 356.1 MB, free: 14.03 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.001269/0.1164, allocations: 0.7793 MB / 356.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1164, allocations: 12.03 kB / 356.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.22e-05/0.1165, allocations: 74.72 kB / 356.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.1166, allocations: 52.38 kB / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.1171, allocations: 363.6 kB / 357.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.1171, allocations: 21.38 kB / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/0.1172, allocations: 47.88 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000847/0.1181, allocations: 450.3 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.1181, allocations: 3.906 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.1181, allocations: 16 kB / 357.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1181, allocations: 8 kB / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009579/0.1191, allocations: 379.6 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.1212, allocations: 1.571 MB / 359.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.1219, allocations: 317.4 kB / 360.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.1224, allocations: 160.8 kB / 360.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.1224, allocations: 4 kB / 360.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1224, allocations: 38.56 kB / 360.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.1224, allocations: 0 / 360.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003047/0.1255, allocations: 1.398 MB / 361.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1256, allocations: 77.11 kB / 361.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.1259, allocations: 353.7 kB / 362.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.1259, allocations: 33.7 kB / 362.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1261, allocations: 243.9 kB / 362.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.1262, allocations: 118.3 kB / 362.5 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.1263, allocations: 82.03 kB / 362.6 MB, free: 7.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1265, allocations: 354.7 kB / 363 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/0.1269, allocations: 170.4 kB / 363.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/0.1274, allocations: 252.8 kB / 363.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008416/0.1282, allocations: 387.4 kB / 363.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1283, allocations: 4 kB / 363.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001074/0.1293, allocations: 493 kB / 364.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1294, allocations: 4 kB / 364.2 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1294, allocations: 4 kB / 364.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1294, allocations: 4 kB / 364.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008535/0.1303, allocations: 207.9 kB / 364.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.1319, allocations: 1.572 MB / 366 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.1322, allocations: 43.92 kB / 366.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.1323, allocations: 16 kB / 366.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004961/0.1328, allocations: 269 kB / 366.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000418/0.1332, allocations: 236.8 kB / 366.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007443/0.1339, allocations: 379.4 kB / 366.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.134, allocations: 0 / 366.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009339/0.1349, allocations: 473 kB / 367.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.1349, allocations: 4 kB / 367.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1349, allocations: 7.938 kB / 367.4 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-06/0.1349, allocations: 7.938 kB / 367.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.1354, allocations: 124 kB / 367.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1354, allocations: 8 kB / 367.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.1357, allocations: 31.97 kB / 367.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.1358, allocations: 16 kB / 367.6 MB, free: 1.844 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.0001423/0.1359, allocations: 204.1 kB / 367.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.136, allocations: 43.47 kB / 367.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.064e-05/0.1361, allocations: 40.25 kB / 367.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1361, allocations: 8 kB / 367.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1361, allocations: 0 / 367.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1361, allocations: 0 / 367.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.1376, allocations: 0.915 MB / 368.8 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.1377, allocations: 8 kB / 368.8 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.1381, allocations: 79.88 kB / 368.9 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.1381, allocations: 4 kB / 368.9 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.1381, allocations: 16.12 kB / 368.9 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.1381, allocations: 0 / 368.9 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1382, allocations: 4 kB / 368.9 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1945/0.3326, allocations: 0.6605 MB / 369.6 MB, free: 25.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.3329, allocations: 134.1 kB / 369.7 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.975e-05/0.333, allocations: 11.59 kB / 369.7 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.3333, allocations: 33.5 kB / 369.8 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.259e-05/0.3334, allocations: 29.16 kB / 369.8 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.3334, allocations: 7.875 kB / 369.8 MB, free: 25.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003027/0.3337, allocations: 248.6 kB / 370 MB, free: 25.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3337, allocations: 0.8438 kB / 370 MB, free: 25.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006305/0.3344, allocations: 135.8 kB / 370.2 MB, free: 25.16 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.001702/0.3361, allocations: 1.22 MB / 371.4 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.3383, allocations: 0.7 MB / 372.1 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.3384, allocations: 11.22 kB / 372.1 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.3388, allocations: 179.9 kB / 372.3 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007775/0.3396, allocations: 95 kB / 372.4 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00653/0.3462, allocations: 4.191 MB / 376.6 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.3466, allocations: 0.8238 MB / 377.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003342/0.3469, allocations: 62.86 kB / 377.4 MB, free: 21.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.3471, allocations: 138.2 kB / 377.6 MB, free: 21.2 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3471, allocations: 0 / 377.6 MB, free: 21.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.3757, allocations: 8.369 MB / 385.9 MB, free: 18.94 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.376, allocations: 217.1 kB / 386.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.333, allocations: 0 / 386.2 MB, free: 18.68 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches