Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001252/0.001252, allocations: 109.7 kB / 19.74 MB, free: 2.586 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.001451/0.001451, allocations: 218.6 kB / 22.92 MB, free: 5.559 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.311/1.311, allocations: 230.5 MB / 256.4 MB, free: 8.281 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001846/0.001846, allocations: 63.83 kB / 376.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2577, allocations: 53.32 MB / 429.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003131/0.2608, allocations: 2.051 MB / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009419/0.2618, allocations: 0.5727 MB / 432 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.842e-05/0.2619, allocations: 3.938 kB / 432 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.262, allocations: 19.8 kB / 432 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.2621, allocations: 23.8 kB / 432 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.2623, allocations: 59.8 kB / 432.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.2625, allocations: 123.6 kB / 432.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2626, allocations: 45.38 kB / 432.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.737e-05/0.2627, allocations: 51.78 kB / 432.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.884e-05/0.2628, allocations: 59.7 kB / 432.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.2628, allocations: 12 kB / 432.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.37e-05/0.2629, allocations: 12 kB / 432.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.242e-05/0.2629, allocations: 27.86 kB / 432.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.263, allocations: 59.72 kB / 432.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.2631, allocations: 127.8 kB / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2632, allocations: 0 / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2632, allocations: 0 / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2632, allocations: 0 / 432.6 MB, free: 4.207 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005881/0.2637, allocations: 438.9 kB / 433 MB, free: 3.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2638, allocations: 8.031 kB / 433.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.2638, allocations: 46.73 kB / 433.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.2639, allocations: 16.84 kB / 433.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.2641, allocations: 208.1 kB / 433.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.2641, allocations: 12.38 kB / 433.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.2641, allocations: 16.36 kB / 433.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.2646, allocations: 262.2 kB / 433.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2646, allocations: 0 / 433.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.2646, allocations: 4 kB / 433.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.2646, allocations: 4 kB / 433.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.2649, allocations: 91.86 kB / 433.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.2655, allocations: 0.5843 MB / 434.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.2658, allocations: 147.9 kB / 434.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.266, allocations: 62.64 kB / 434.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.266, allocations: 11.98 kB / 434.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.266, allocations: 38.55 kB / 434.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.213e-06/0.266, allocations: 0 / 434.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005003/0.2665, allocations: 181.4 kB / 434.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.2666, allocations: 115.1 kB / 434.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.2667, allocations: 141.1 kB / 435 MB, free: 1.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.2667, allocations: 29.7 kB / 435 MB, free: 1.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.2668, allocations: 115.9 kB / 435.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.2668, allocations: 27.83 kB / 435.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.094e-05/0.2669, allocations: 37.7 kB / 435.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.267, allocations: 318.8 kB / 435.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2671, allocations: 39.92 kB / 435.5 MB, free: 1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.2673, allocations: 140 kB / 435.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.2676, allocations: 185.5 kB / 435.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2676, allocations: 11.94 kB / 435.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003698/0.268, allocations: 189.6 kB / 436 MB, free: 392 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.268, allocations: 12.03 kB / 436 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.268, allocations: 4 kB / 436.1 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.268, allocations: 4 kB / 436.1 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2681, allocations: 47.91 kB / 436.1 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.2682, allocations: 7.938 kB / 436.1 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.964e-05/0.2683, allocations: 19.89 kB / 436.1 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.2683, allocations: 12 kB / 436.1 MB, free: 284 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.0001118/0.2684, allocations: 133.7 kB / 436.3 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.2685, allocations: 93.58 kB / 436.4 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.369e-05/0.2686, allocations: 12.72 kB / 436.4 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.2686, allocations: 4 kB / 436.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.2686, allocations: 0 / 436.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2686, allocations: 7.984 kB / 436.4 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.2689, allocations: 201.5 kB / 436.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2689, allocations: 7.984 kB / 436.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.2691, allocations: 35.92 kB / 436.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2691, allocations: 0 / 436.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.2691, allocations: 8 kB / 436.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2691, allocations: 4 kB / 436.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2691, allocations: 0 / 436.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.2697, allocations: 386.2 kB / 437 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.2697, allocations: 97.05 kB / 437.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.2697, allocations: 0 / 437.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.2699, allocations: 15.98 kB / 437.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.2699, allocations: 0 / 437.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.2699, allocations: 8.078 kB / 437.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.54e-05/0.27, allocations: 103.2 kB / 437.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.27, allocations: 0 / 437.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.2703, allocations: 24 kB / 437.3 MB, free: 15.05 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.0008506/0.2711, allocations: 0.9218 MB / 438.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003135/0.2714, allocations: 119.8 kB / 438.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2714, allocations: 3.938 kB / 438.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.597e-05/0.2715, allocations: 32.33 kB / 438.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.272, allocations: 49 kB / 438.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.2743, allocations: 2.06 MB / 440.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.2746, allocations: 0.7123 MB / 441.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.169e-05/0.2746, allocations: 13.09 kB / 441.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.248e-05/0.2747, allocations: 35.42 kB / 441.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2747, allocations: 0 / 441.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.2995, allocations: 2.795 MB / 444 MB, free: 8.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.894/7.193, allocations: 8.047 kB / 444 MB, free: 8.199 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.303178189999016]