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.001351/0.001351, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001481/0.001481, allocations: 212.4 kB / 24.54 MB, free: 4.016 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.681/1.681, allocations: 230.6 MB / 258.3 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] 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.002059/0.002059, allocations: 72.77 kB / 378.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3193, allocations: 53.37 MB / 431.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003884/0.3232, allocations: 2.043 MB / 433.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.3243, allocations: 0.5687 MB / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3244, allocations: 4 kB / 434.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.3245, allocations: 19.8 kB / 434.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.3247, allocations: 31.72 kB / 434.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.3249, allocations: 62.69 kB / 434.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.3251, allocations: 119.6 kB / 434.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.3253, allocations: 49.56 kB / 434.8 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.783e-05/0.3254, allocations: 55.72 kB / 434.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.352e-05/0.3255, allocations: 51.78 kB / 434.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.3255, allocations: 12 kB / 434.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.844e-05/0.3255, allocations: 8 kB / 434.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.341e-05/0.3255, allocations: 31.84 kB / 434.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.333e-05/0.3256, allocations: 67.66 kB / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.3258, allocations: 120.6 kB / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3258, allocations: 0 / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3258, allocations: 3.938 kB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3258, allocations: 4 kB / 435.1 MB, free: 3.949 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.0006689/0.3265, allocations: 361.8 kB / 435.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3266, allocations: 12.02 kB / 435.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.385e-05/0.3266, allocations: 46.69 kB / 435.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.402e-05/0.3267, allocations: 16.84 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.3269, allocations: 150.3 kB / 435.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.327, allocations: 16.31 kB / 435.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.509e-05/0.327, allocations: 20.36 kB / 435.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005712/0.3276, allocations: 238.7 kB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3276, allocations: 7.984 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.3276, allocations: 4 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3276, allocations: 4 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.3279, allocations: 87.86 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007804/0.3287, allocations: 0.531 MB / 436.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.3291, allocations: 143.7 kB / 436.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.3293, allocations: 74.83 kB / 436.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.3293, allocations: 7.922 kB / 436.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.3293, allocations: 34.56 kB / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.3293, allocations: 0 / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006236/0.33, allocations: 185.5 kB / 437.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/0.3301, allocations: 110.8 kB / 437.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3302, allocations: 137.1 kB / 437.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.3302, allocations: 25.7 kB / 437.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.286e-05/0.3303, allocations: 115.9 kB / 437.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.044e-05/0.3303, allocations: 27.84 kB / 437.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.3304, allocations: 33.7 kB / 437.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3305, allocations: 326.8 kB / 437.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3306, allocations: 40.38 kB / 437.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.3308, allocations: 137.7 kB / 438 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.3311, allocations: 181.5 kB / 438.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3311, allocations: 3.938 kB / 438.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003719/0.3315, allocations: 209.2 kB / 438.4 MB, free: 364 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3315, allocations: 8 kB / 438.4 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3315, allocations: 4 kB / 438.4 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3315, allocations: 4 kB / 438.4 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.3317, allocations: 51.91 kB / 438.4 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3317, allocations: 4 kB / 438.4 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.3318, allocations: 19.88 kB / 438.5 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.3318, allocations: 12.31 kB / 438.5 MB, free: 260 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.000115/0.332, allocations: 138.2 kB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.3321, allocations: 89.58 kB / 438.7 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.047e-05/0.3322, allocations: 12.72 kB / 438.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.3322, allocations: 4.047 kB / 438.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3322, allocations: 0 / 438.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3322, allocations: 4.172 kB / 438.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.3325, allocations: 180.6 kB / 438.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3325, allocations: 0 / 438.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.3327, allocations: 43.97 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3327, allocations: 0 / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.3327, allocations: 4 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.3327, allocations: 3.938 kB / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3327, allocations: 3.984 kB / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005943/0.3333, allocations: 379.4 kB / 439.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.417e-05/0.3334, allocations: 15.88 kB / 439.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.3334, allocations: 8 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3335, allocations: 7.984 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.3336, allocations: 3.984 kB / 439.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.3336, allocations: 8 kB / 439.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.149e-05/0.3336, allocations: 102.6 kB / 439.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3336, allocations: 4.062 kB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000317/0.334, allocations: 24 kB / 439.5 MB, free: 15.16 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.0008747/0.3348, allocations: 0.9194 MB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.3352, allocations: 123.7 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3352, allocations: 0.9375 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3353, allocations: 31.97 kB / 440.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005038/0.3358, allocations: 51.94 kB / 440.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.3385, allocations: 2.058 MB / 442.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.3388, allocations: 0.7162 MB / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.759e-05/0.3389, allocations: 9.078 kB / 443.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.04e-05/0.339, allocations: 35.44 kB / 443.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.339, allocations: 0 / 443.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.3779, allocations: 2.905 MB / 446.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.645/9.023, allocations: 3.938 kB / 446.3 MB, free: 8.211 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.000593942 --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: 11.596163137350231] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.098743400070816 9.131362157 8.799650179 Calling exit ...