Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001424/0.001424, allocations: 105.8 kB / 19.74 MB, free: 2.566 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.00155/0.00155, allocations: 221.2 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.318/1.318, allocations: 230.4 MB / 256.4 MB, free: 8.434 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 71.83 kB / 376.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2465, allocations: 53.31 MB / 429.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003063/0.2495, allocations: 2.071 MB / 431.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.2505, allocations: 0.6155 MB / 432.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2507, allocations: 7.938 kB / 432.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.2508, allocations: 19.8 kB / 432.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.2509, allocations: 27.72 kB / 432.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.2512, allocations: 79.72 kB / 432.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.2514, allocations: 127.6 kB / 432.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.2515, allocations: 37.88 kB / 432.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.752e-05/0.2516, allocations: 63.7 kB / 432.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.584e-05/0.2517, allocations: 59.7 kB / 432.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.2517, allocations: 8 kB / 432.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.474e-05/0.2517, allocations: 12 kB / 432.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.2518, allocations: 35.86 kB / 432.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.2519, allocations: 67.59 kB / 432.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.2521, allocations: 143.7 kB / 432.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2521, allocations: 0 / 432.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2521, allocations: 0 / 432.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2521, allocations: 0 / 432.7 MB, free: 4.074 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006331/0.2527, allocations: 466.6 kB / 433.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2528, allocations: 8.031 kB / 433.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.2528, allocations: 46.73 kB / 433.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.2528, allocations: 20.8 kB / 433.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.2531, allocations: 220.1 kB / 433.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.2531, allocations: 8.375 kB / 433.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.2531, allocations: 16.38 kB / 433.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.2536, allocations: 261.7 kB / 433.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2536, allocations: 4 kB / 433.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2536, allocations: 11.94 kB / 433.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2536, allocations: 4 kB / 433.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.2539, allocations: 87.88 kB / 433.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000616/0.2545, allocations: 0.5922 MB / 434.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.2548, allocations: 151.8 kB / 434.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.255, allocations: 74.62 kB / 434.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.255, allocations: 4 kB / 434.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.255, allocations: 30.56 kB / 434.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.255, allocations: 0 / 434.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005093/0.2555, allocations: 189.5 kB / 434.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.2556, allocations: 114.8 kB / 435 MB, free: 1.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.2558, allocations: 154.9 kB / 435.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2558, allocations: 33.7 kB / 435.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.2559, allocations: 112.5 kB / 435.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.2559, allocations: 35.72 kB / 435.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.2559, allocations: 29.72 kB / 435.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2561, allocations: 326.8 kB / 435.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2562, allocations: 39.97 kB / 435.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.2563, allocations: 135.2 kB / 435.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.2566, allocations: 189.5 kB / 436 MB, free: 376 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2566, allocations: 3.938 kB / 436 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003509/0.257, allocations: 193.6 kB / 436.2 MB, free: 172 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.257, allocations: 8 kB / 436.2 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.257, allocations: 8.031 kB / 436.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.257, allocations: 7.984 kB / 436.3 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2572, allocations: 43.92 kB / 436.3 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.2572, allocations: 8 kB / 436.3 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.2573, allocations: 23.88 kB / 436.3 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.2573, allocations: 8.625 kB / 436.3 MB, free: 64 kB / 334.1 MB 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.0001165/0.2574, allocations: 137.7 kB / 436.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.2575, allocations: 97.47 kB / 436.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.611e-05/0.2576, allocations: 20.72 kB / 436.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2576, allocations: 4 kB / 436.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2576, allocations: 3.938 kB / 436.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2576, allocations: 3.984 kB / 436.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.2579, allocations: 213.5 kB / 436.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2579, allocations: 0 / 436.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.2581, allocations: 47.91 kB / 436.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2581, allocations: 0 / 436.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.2581, allocations: 0 / 436.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2581, allocations: 4 kB / 436.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2581, allocations: 0 / 436.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005101/0.2586, allocations: 391.3 kB / 437.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.08e-05/0.2587, allocations: 101 kB / 437.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.2587, allocations: 4 kB / 437.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.2588, allocations: 15.98 kB / 437.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.2589, allocations: 4 kB / 437.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.2589, allocations: 4 kB / 437.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.302e-05/0.259, allocations: 128 kB / 437.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.259, allocations: 64 / 437.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.2593, allocations: 28 kB / 437.5 MB, free: 14.77 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.0007597/0.26, allocations: 0.9232 MB / 438.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.2603, allocations: 111.8 kB / 438.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2603, allocations: 0 / 438.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.545e-05/0.2604, allocations: 28.91 kB / 438.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.2608, allocations: 68.31 kB / 438.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.2631, allocations: 2.119 MB / 440.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.2634, allocations: 0.724 MB / 441.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.709e-05/0.2634, allocations: 13.44 kB / 441.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.2635, allocations: 39.42 kB / 441.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2635, allocations: 0 / 441.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.2886, allocations: 2.964 MB / 444.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.905/7.194, allocations: 11.98 kB / 444.5 MB, free: 7.676 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.335467524004343]