Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001431/0.001431, allocations: 106.5 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.001631/0.001631, allocations: 221.5 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.315/1.315, allocations: 230.5 MB / 256.4 MB, free: 8.426 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001816/0.001816, allocations: 75.81 kB / 376.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2586, allocations: 53.32 MB / 429.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003392/0.262, allocations: 2.047 MB / 431.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.263, allocations: 0.5415 MB / 432 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2632, allocations: 4 kB / 432 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.2633, allocations: 19.8 kB / 432 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.672e-05/0.2634, allocations: 19.8 kB / 432 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.2637, allocations: 55.88 kB / 432.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.2639, allocations: 123.6 kB / 432.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.264, allocations: 41.41 kB / 432.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.777e-05/0.2641, allocations: 55.67 kB / 432.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.209e-05/0.2642, allocations: 51.77 kB / 432.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.2642, allocations: 12 kB / 432.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.449e-05/0.2643, allocations: 12 kB / 432.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.2643, allocations: 31.91 kB / 432.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.2644, allocations: 59.67 kB / 432.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.2646, allocations: 119.9 kB / 432.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2646, allocations: 0 / 432.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2646, allocations: 0 / 432.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2646, allocations: 3.938 kB / 432.6 MB, free: 4.191 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006082/0.2652, allocations: 426.9 kB / 433 MB, free: 3.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2652, allocations: 12.03 kB / 433 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.815e-05/0.2653, allocations: 46.75 kB / 433 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.2653, allocations: 12.84 kB / 433.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.2656, allocations: 212.1 kB / 433.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.2656, allocations: 8.375 kB / 433.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.2656, allocations: 16.33 kB / 433.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.2661, allocations: 246.7 kB / 433.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2661, allocations: 0 / 433.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2661, allocations: 4 kB / 433.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2661, allocations: 4 kB / 433.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.2664, allocations: 95.86 kB / 433.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.267, allocations: 0.5804 MB / 434.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.2673, allocations: 151.9 kB / 434.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.2674, allocations: 70.62 kB / 434.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2674, allocations: 0 / 434.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.2675, allocations: 42.56 kB / 434.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.103e-06/0.2675, allocations: 0 / 434.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005001/0.268, allocations: 177.8 kB / 434.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/0.2681, allocations: 114.8 kB / 434.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.2682, allocations: 138.2 kB / 434.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2682, allocations: 25.7 kB / 434.9 MB, free: 1.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.2683, allocations: 115.8 kB / 435 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.2683, allocations: 31.77 kB / 435.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.2683, allocations: 37.7 kB / 435.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2685, allocations: 318.8 kB / 435.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.2686, allocations: 35.97 kB / 435.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.2687, allocations: 131.9 kB / 435.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.269, allocations: 176.7 kB / 435.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.269, allocations: 3.938 kB / 435.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003618/0.2694, allocations: 189.2 kB / 435.9 MB, free: 436 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2694, allocations: 8 kB / 435.9 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.2694, allocations: 8.375 kB / 435.9 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.2694, allocations: 7.984 kB / 436 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2696, allocations: 39.98 kB / 436 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.2696, allocations: 7.938 kB / 436 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2697, allocations: 23.88 kB / 436 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2697, allocations: 8 kB / 436 MB, free: 332 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001054/0.2698, allocations: 133.7 kB / 436.2 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.27, allocations: 81.58 kB / 436.2 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.27, allocations: 24.64 kB / 436.3 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.27, allocations: 4 kB / 436.3 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.27, allocations: 7.938 kB / 436.3 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.27, allocations: 0 / 436.3 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/0.2703, allocations: 201.6 kB / 436.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2703, allocations: 0 / 436.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001647/0.2705, allocations: 35.98 kB / 436.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2705, allocations: 0 / 436.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.2705, allocations: 3.938 kB / 436.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.2705, allocations: 4 kB / 436.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2705, allocations: 3.984 kB / 436.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005075/0.271, allocations: 377 kB / 436.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/0.2711, allocations: 92.98 kB / 437 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.2711, allocations: 7.938 kB / 437 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.2712, allocations: 12.14 kB / 437 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.2712, allocations: 15.94 kB / 437 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.2713, allocations: 4 kB / 437 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.364e-05/0.2713, allocations: 99.25 kB / 437.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2713, allocations: 0 / 437.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.2716, allocations: 28 kB / 437.1 MB, free: 15.11 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 (14): * Single equations (assignments): 14 * 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.0007749/0.2724, allocations: 0.9077 MB / 438.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003224/0.2727, allocations: 116.3 kB / 438.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2727, allocations: 0 / 438.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.463e-05/0.2728, allocations: 27.92 kB / 438.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.2733, allocations: 41.52 kB / 438.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.2756, allocations: 2.036 MB / 440.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.276, allocations: 0.7162 MB / 441 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.827e-05/0.276, allocations: 4.656 kB / 441 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.972e-05/0.2761, allocations: 39.42 kB / 441 MB, free: 11 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2761, allocations: 0 / 441 MB, free: 11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.3042, allocations: 2.74 MB / 443.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.979/7.283, allocations: 8.047 kB / 443.8 MB, free: 8.375 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.418184228001337]