Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1111, allocations: 53.32 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004985/0.116, allocations: 3.142 MB / 429.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1184, allocations: 0.997 MB / 430.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.1187, allocations: 19.81 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.1191, allocations: 91.17 kB / 430.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1194, allocations: 103.1 kB / 430.6 MB, free: 432 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006393/0.12, allocations: 239 kB / 430.9 MB, free: 196 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2128/0.3328, allocations: 0.5087 MB / 431.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.3332, allocations: 123.2 kB / 431.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.3335, allocations: 204.6 kB / 431.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.3337, allocations: 208.5 kB / 431.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-05/0.3338, allocations: 41.09 kB / 432 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.3339, allocations: 41.03 kB / 432 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.334, allocations: 104.4 kB / 432.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.3342, allocations: 216.7 kB / 432.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.3347, allocations: 0.4964 MB / 432.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3347, allocations: 3.781 kB / 432.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3347, allocations: 0 / 432.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3347, allocations: 0.5625 kB / 432.8 MB, free: 7.336 MB / 350.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.0012/0.3359, allocations: 0.7747 MB / 433.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.336, allocations: 11.06 kB / 433.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.454e-05/0.3361, allocations: 72.17 kB / 433.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.403e-05/0.3362, allocations: 59.11 kB / 433.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.3367, allocations: 368.5 kB / 434.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.3367, allocations: 30.75 kB / 434.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.3368, allocations: 38.06 kB / 434.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.3377, allocations: 464.3 kB / 434.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3377, allocations: 11.95 kB / 434.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.3377, allocations: 13.16 kB / 434.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.3377, allocations: 9.312 kB / 434.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009801/0.3387, allocations: 376.7 kB / 435 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.3406, allocations: 1.568 MB / 436.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008169/0.3415, allocations: 299 kB / 436.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/0.3419, allocations: 155.5 kB / 437 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.3419, allocations: 7.562 kB / 437 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.342, allocations: 41.25 kB / 437.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.736e-06/0.342, allocations: 3.938 kB / 437.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003424/0.3454, allocations: 1.385 MB / 438.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.3454, allocations: 108.1 kB / 438.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003965/0.3458, allocations: 362.2 kB / 438.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.3458, allocations: 31.64 kB / 438.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.346, allocations: 246.1 kB / 439.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.346, allocations: 121.2 kB / 439.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.3462, allocations: 77.02 kB / 439.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.3463, allocations: 348.7 kB / 439.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004982/0.3468, allocations: 177.4 kB / 439.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.3473, allocations: 256.9 kB / 440.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008962/0.3482, allocations: 385.4 kB / 440.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.3482, allocations: 2.781 kB / 440.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001154/0.3493, allocations: 0.4951 MB / 441 MB, free: 3.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3494, allocations: 7.266 kB / 441 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.3494, allocations: 2.156 kB / 441 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.3494, allocations: 3.219 kB / 441 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009944/0.3504, allocations: 211.8 kB / 441.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.3519, allocations: 1.566 MB / 442.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.3523, allocations: 42.91 kB / 442.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.3523, allocations: 15.16 kB / 442.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005884/0.3529, allocations: 275.7 kB / 443.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004459/0.3533, allocations: 243.5 kB / 443.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007632/0.3541, allocations: 367.6 kB / 443.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.3541, allocations: 1.094 kB / 443.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001012/0.3551, allocations: 477.8 kB / 444.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.3551, allocations: 6.609 kB / 444.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3551, allocations: 2.75 kB / 444.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.043e-06/0.3551, allocations: 3.812 kB / 444.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.3556, allocations: 123.5 kB / 444.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3556, allocations: 7.562 kB / 444.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/0.356, allocations: 37.27 kB / 444.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.813e-05/0.356, allocations: 14.97 kB / 444.4 MB, free: 1.16 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.0001346/0.3561, allocations: 206.4 kB / 444.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.995e-05/0.3562, allocations: 42.28 kB / 444.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.3563, allocations: 47.56 kB / 444.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3563, allocations: 6.875 kB / 444.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3563, allocations: 4.469 kB / 444.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3563, allocations: 1.875 kB / 444.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.358, allocations: 0.9082 MB / 445.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.358, allocations: 3 kB / 445.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.3585, allocations: 90.44 kB / 445.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3585, allocations: 2.875 kB / 445.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.3585, allocations: 8.219 kB / 445.7 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.3585, allocations: 7.391 kB / 445.7 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3585, allocations: 1.062 kB / 445.7 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.3599, allocations: 0.668 MB / 446.4 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.3601, allocations: 144.3 kB / 446.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.3601, allocations: 8.766 kB / 446.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.3604, allocations: 32.41 kB / 446.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.3605, allocations: 26.78 kB / 446.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.3605, allocations: 16.55 kB / 446.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.3608, allocations: 244.4 kB / 446.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3608, allocations: 0 / 446.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005975/0.3614, allocations: 137.7 kB / 447 MB, free: 15.73 MB / 366.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.001885/0.3633, allocations: 1.221 MB / 448.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.3654, allocations: 0.6543 MB / 448.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3654, allocations: 0 / 448.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.3658, allocations: 181.9 kB / 449 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.3665, allocations: 101.1 kB / 449.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006932/0.3735, allocations: 4.023 MB / 453.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.374, allocations: 0.8243 MB / 454 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.3742, allocations: 58.86 kB / 454 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.3745, allocations: 137.4 kB / 454.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3745, allocations: 1.188 kB / 454.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/0.4155, allocations: 8.767 MB / 462.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.94, allocations: 11.14 kB / 462.9 MB, free: 8.109 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.378714688122272]