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.001364/0.001364, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001518/0.001518, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.458/1.458, allocations: 230.6 MB / 258.3 MB, free: 8.023 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 43.92 kB / 378.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2349, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00448/0.2394, allocations: 3.16 MB / 435.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.2414, allocations: 1.009 MB / 436.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003214/0.2417, allocations: 19.81 kB / 436.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004081/0.2421, allocations: 83.23 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002695/0.2424, allocations: 111.1 kB / 436.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.2431, allocations: 238 kB / 436.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006665/0.2438, allocations: 0.5263 MB / 437.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.2441, allocations: 125.7 kB / 437.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.2444, allocations: 199.2 kB / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.2447, allocations: 211 kB / 437.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.131e-05/0.2448, allocations: 40 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.954e-05/0.2448, allocations: 40 kB / 437.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.245, allocations: 111.5 kB / 437.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2451, allocations: 214.8 kB / 438 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00055/0.2457, allocations: 0.4947 MB / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2457, allocations: 0 / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2457, allocations: 4 kB / 438.5 MB, free: 308 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.2457, allocations: 0 / 438.5 MB, free: 308 kB / 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.001336/0.247, allocations: 0.7077 MB / 439.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2471, allocations: 8.031 kB / 439.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.203e-05/0.2471, allocations: 9.188 kB / 439.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.2472, allocations: 74.72 kB / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.456e-05/0.2473, allocations: 60.55 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/0.2478, allocations: 298.2 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.2479, allocations: 29.38 kB / 439.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.248, allocations: 40.38 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009197/0.2489, allocations: 455.2 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.2489, allocations: 7.938 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.2489, allocations: 16 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2489, allocations: 8 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009832/0.2499, allocations: 383.6 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.252, allocations: 1.492 MB / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007881/0.2528, allocations: 295.4 kB / 442.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/0.2532, allocations: 160.8 kB / 442.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.2533, allocations: 7.984 kB / 442.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.2533, allocations: 38.48 kB / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.442e-06/0.2533, allocations: 0 / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003165/0.2565, allocations: 1.239 MB / 443.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.2566, allocations: 106.8 kB / 443.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.2569, allocations: 357.6 kB / 444.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.257, allocations: 29.7 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.2572, allocations: 244.3 kB / 444.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.2573, allocations: 127.1 kB / 444.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.2574, allocations: 82.12 kB / 444.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.2576, allocations: 350.7 kB / 445 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004648/0.258, allocations: 170.4 kB / 445.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/0.2585, allocations: 265.6 kB / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009215/0.2595, allocations: 387.4 kB / 445.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2595, allocations: 7.938 kB / 445.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001089/0.2606, allocations: 497.2 kB / 446.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2606, allocations: 4 kB / 446.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2606, allocations: 4 kB / 446.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.2606, allocations: 4 kB / 446.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.2615, allocations: 211.9 kB / 446.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.2632, allocations: 1.469 MB / 448 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.2635, allocations: 47.98 kB / 448.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.2635, allocations: 15.98 kB / 448.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005559/0.2641, allocations: 276.8 kB / 448.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004715/0.2645, allocations: 241.7 kB / 448.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008135/0.2654, allocations: 371.5 kB / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.453e-06/0.2654, allocations: 0 / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001025/0.2664, allocations: 473.3 kB / 449.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/0.2664, allocations: 7.938 kB / 449.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2664, allocations: 7.984 kB / 449.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.703e-06/0.2664, allocations: 7.938 kB / 449.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.267, allocations: 111.9 kB / 449.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.267, allocations: 7.938 kB / 449.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.2673, allocations: 44.11 kB / 449.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.2674, allocations: 16 kB / 449.6 MB, free: 4.594 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.0001556/0.2675, allocations: 197.8 kB / 449.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.2676, allocations: 43.72 kB / 449.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.807e-05/0.2677, allocations: 52.19 kB / 449.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2677, allocations: 0 / 449.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2677, allocations: 4 kB / 449.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2677, allocations: 7.984 kB / 449.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.2696, allocations: 0.8833 MB / 450.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.2696, allocations: 0 / 450.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004583/0.2701, allocations: 87.88 kB / 450.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.2701, allocations: 0 / 450.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.2701, allocations: 8 kB / 450.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.198e-06/0.2701, allocations: 11.92 kB / 450.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2701, allocations: 0 / 450.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.2716, allocations: 0.6717 MB / 451.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.2717, allocations: 63.75 kB / 451.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.87e-05/0.2718, allocations: 8 kB / 451.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.2721, allocations: 39.94 kB / 451.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.872e-05/0.2721, allocations: 27.89 kB / 451.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.2722, allocations: 16.06 kB / 451.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002654/0.2724, allocations: 251.1 kB / 452 MB, free: 2.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2724, allocations: 0 / 452 MB, free: 2.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.273, allocations: 136 kB / 452.1 MB, free: 2.008 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.001961/0.275, allocations: 1.204 MB / 453.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.2769, allocations: 0.6687 MB / 454 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2769, allocations: 448 / 454 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004867/0.2774, allocations: 179.7 kB / 454.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006586/0.278, allocations: 104.3 kB / 454.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007/0.285, allocations: 3.998 MB / 458.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.2855, allocations: 0.8234 MB / 459.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002731/0.2858, allocations: 59.23 kB / 459.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003048/0.2861, allocations: 139.4 kB / 459.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.2861, allocations: 4 kB / 459.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.3184, allocations: 9.088 MB / 468.3 MB, free: 1.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.54, allocations: 18.3 kB / 468.4 MB, free: 1.703 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.139608729048632]