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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 51.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.228, allocations: 52.17 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004459/0.2324, allocations: 2.907 MB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.2342, allocations: 0.9348 MB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.2344, allocations: 19.88 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003219/0.2348, allocations: 87.17 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.235, allocations: 111.1 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005289/0.2356, allocations: 231.3 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005519/0.2361, allocations: 0.5222 MB / 427.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.2363, allocations: 117.7 kB / 427.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.2366, allocations: 199.2 kB / 427.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.2368, allocations: 187 kB / 427.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.643e-05/0.2369, allocations: 40 kB / 427.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.161e-05/0.237, allocations: 48 kB / 427.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.2371, allocations: 107.5 kB / 428 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.2372, allocations: 179 kB / 428.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005368/0.2378, allocations: 0.4919 MB / 428.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.2378, allocations: 0 / 428.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2378, allocations: 0 / 428.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2378, allocations: 0 / 428.7 MB, free: 8.242 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.001255/0.239, allocations: 0.7116 MB / 429.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2391, allocations: 12.03 kB / 429.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.148e-05/0.2392, allocations: 74.72 kB / 429.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.635e-05/0.2392, allocations: 52.61 kB / 429.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.2398, allocations: 310.2 kB / 429.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.2398, allocations: 37.06 kB / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.2399, allocations: 39.95 kB / 429.9 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008973/0.2408, allocations: 476.1 kB / 430.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.2408, allocations: 3.938 kB / 430.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.2408, allocations: 12 kB / 430.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2408, allocations: 8 kB / 430.4 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009966/0.2418, allocations: 379.6 kB / 430.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.2439, allocations: 1.425 MB / 432.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008301/0.2448, allocations: 301.3 kB / 432.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004294/0.2452, allocations: 152.7 kB / 432.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.2452, allocations: 12.48 kB / 432.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.2453, allocations: 42.56 kB / 432.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.2453, allocations: 0 / 432.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003128/0.2484, allocations: 1.219 MB / 433.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.2485, allocations: 81.11 kB / 434 MB, free: 2.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.2489, allocations: 365.6 kB / 434.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.2489, allocations: 29.7 kB / 434.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.2491, allocations: 252.2 kB / 434.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.818e-05/0.2492, allocations: 123 kB / 434.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2493, allocations: 82.08 kB / 434.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2495, allocations: 354.7 kB / 435.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.25, allocations: 170.5 kB / 435.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005349/0.2505, allocations: 278.5 kB / 435.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009319/0.2514, allocations: 392.5 kB / 436 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2514, allocations: 0 / 436 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001128/0.2526, allocations: 493 kB / 436.5 MB, free: 64 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2526, allocations: 8 kB / 436.5 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2526, allocations: 0 / 436.5 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.2526, allocations: 8 kB / 436.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008826/0.2535, allocations: 207.9 kB / 436.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.2552, allocations: 1.466 MB / 438.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.2556, allocations: 39.95 kB / 438.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.2556, allocations: 16 kB / 438.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005405/0.2561, allocations: 268.9 kB / 438.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004994/0.2566, allocations: 266.6 kB / 438.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008393/0.2575, allocations: 367.7 kB / 439.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/0.2575, allocations: 4 kB / 439.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001014/0.2585, allocations: 473 kB / 439.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.2585, allocations: 11.94 kB / 439.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.2585, allocations: 0 / 439.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.484e-06/0.2585, allocations: 4 kB / 439.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.259, allocations: 124 kB / 439.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.259, allocations: 4 kB / 439.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.2593, allocations: 43.89 kB / 439.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.2593, allocations: 8 kB / 439.8 MB, free: 12.6 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.0001553/0.2595, allocations: 200.2 kB / 440 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.25e-05/0.2595, allocations: 47.66 kB / 440 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.771e-05/0.2596, allocations: 44.25 kB / 440.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2596, allocations: 8 kB / 440.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2597, allocations: 7.984 kB / 440.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2597, allocations: 0 / 440.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.2613, allocations: 0.8454 MB / 440.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2613, allocations: 4 kB / 440.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004236/0.2618, allocations: 83.88 kB / 441 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.2618, allocations: 4 kB / 441 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.2618, allocations: 8 kB / 441 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.2618, allocations: 3.984 kB / 441 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.2618, allocations: 4 kB / 441 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.2633, allocations: 0.6755 MB / 441.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.2634, allocations: 63.77 kB / 441.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.2635, allocations: 11.94 kB / 441.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.2637, allocations: 31.95 kB / 441.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.2638, allocations: 35.89 kB / 441.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.2639, allocations: 8 kB / 441.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002718/0.2641, allocations: 247.2 kB / 442.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2641, allocations: 0 / 442.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005302/0.2647, allocations: 136 kB / 442.2 MB, free: 10.05 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.001739/0.2664, allocations: 1.227 MB / 443.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.2683, allocations: 0.6534 MB / 444.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2683, allocations: 0 / 444.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004644/0.2688, allocations: 175.7 kB / 444.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.2694, allocations: 108.3 kB / 444.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006337/0.2757, allocations: 4.035 MB / 448.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.2759, allocations: 212.2 kB / 448.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.2762, allocations: 63.23 kB / 448.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.2764, allocations: 139.4 kB / 448.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of SimCode: time 1.123e-06/0.2764, allocations: 0 / 448.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03921/0.3156, allocations: 9.689 MB / 458.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.4, allocations: 3.984 kB / 458.5 MB, free: 9.773 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.000798085 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.011847915127873]