Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0018/0.0018, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002102/0.002102, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.91 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2736, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00398/0.2776, allocations: 2.096 MB / 433.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2786, allocations: 0.5453 MB / 433.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2788, allocations: 7.938 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.2789, allocations: 19.8 kB / 433.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.279, allocations: 27.73 kB / 433.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.2793, allocations: 55.88 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.2795, allocations: 127.6 kB / 434 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2797, allocations: 41.97 kB / 434.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.2798, allocations: 51.8 kB / 434.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.2799, allocations: 63.62 kB / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4e-05/0.28, allocations: 12 kB / 434.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.651e-05/0.28, allocations: 8 kB / 434.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.852e-05/0.28, allocations: 31.86 kB / 434.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.938e-05/0.2801, allocations: 63.67 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.2804, allocations: 127.8 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2804, allocations: 0 / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2804, allocations: 4 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2804, allocations: 0 / 434.4 MB, free: 3.402 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007756/0.2812, allocations: 364.5 kB / 434.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.2812, allocations: 8.031 kB / 434.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.421e-05/0.2813, allocations: 46.75 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.2813, allocations: 28.77 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.2817, allocations: 146.3 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.2817, allocations: 8.375 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.2817, allocations: 12.38 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.2822, allocations: 243.4 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2823, allocations: 0 / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.2823, allocations: 4 kB / 435.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.2823, allocations: 7.938 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.2825, allocations: 79.94 kB / 435.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000758/0.2833, allocations: 0.5427 MB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.2836, allocations: 147.9 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.2838, allocations: 70.58 kB / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2838, allocations: 0 / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.2839, allocations: 38.56 kB / 436.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.2839, allocations: 0 / 436.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005194/0.2844, allocations: 181.3 kB / 436.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.2845, allocations: 115.2 kB / 436.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.2846, allocations: 138.3 kB / 436.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2846, allocations: 29.64 kB / 436.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.2847, allocations: 120 kB / 436.7 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.2847, allocations: 31.78 kB / 436.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/0.2848, allocations: 37.7 kB / 436.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.285, allocations: 318.8 kB / 437.1 MB, free: 488 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.2851, allocations: 43.91 kB / 437.2 MB, free: 444 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.2853, allocations: 137.2 kB / 437.3 MB, free: 260 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.2858, allocations: 212.6 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.957e-05/0.2858, allocations: 208 / 437.5 MB, free: 16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003981/0.2862, allocations: 201.5 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2862, allocations: 11.98 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2862, allocations: 0 / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2862, allocations: 8 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.2864, allocations: 39.92 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.2864, allocations: 7.984 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.2865, allocations: 23.89 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2865, allocations: 8 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 0.0001497/0.2867, allocations: 141.8 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.2868, allocations: 89.58 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.2869, allocations: 12.72 kB / 438 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.2869, allocations: 4 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2869, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2869, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003183/0.2872, allocations: 192.5 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2872, allocations: 0 / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.2874, allocations: 47.91 kB / 438.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2874, allocations: 8 kB / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.2874, allocations: 4 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2874, allocations: 0 / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2874, allocations: 4 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.288, allocations: 387.4 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.301e-05/0.288, allocations: 7.953 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.2881, allocations: 4 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.2882, allocations: 12.25 kB / 438.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.2882, allocations: 11.92 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.2883, allocations: 8 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.368e-05/0.2883, allocations: 98.02 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2883, allocations: 4 kB / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.2886, allocations: 32.02 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0009609/0.2896, allocations: 0.9229 MB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003767/0.29, allocations: 123.7 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.29, allocations: 3.938 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2901, allocations: 24.92 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.2906, allocations: 67.98 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.2935, allocations: 2.093 MB / 442.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.2939, allocations: 0.7162 MB / 442.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.446e-05/0.2939, allocations: 9.094 kB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.809e-05/0.294, allocations: 39.42 kB / 442.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.294, allocations: 0 / 442.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3273, allocations: 3.213 MB / 446 MB, free: 7.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.67, allocations: 6.484 kB / 446 MB, free: 7.266 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.161326514789835]