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.001522/0.001522, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.00188/0.00188, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.549/1.549, allocations: 230.5 MB / 254.7 MB, free: 15.03 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.001928/0.001928, allocations: 67.83 kB / 373.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1076, allocations: 53.31 MB / 426.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003802/0.1114, allocations: 2.037 MB / 428.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.1125, allocations: 0.557 MB / 429.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.1126, allocations: 11.88 kB / 429.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.1127, allocations: 15.8 kB / 429.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.1129, allocations: 35.77 kB / 429.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.1132, allocations: 51.88 kB / 429.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.1134, allocations: 115.6 kB / 429.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1135, allocations: 49.34 kB / 429.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.853e-05/0.1136, allocations: 51.8 kB / 429.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.819e-05/0.1137, allocations: 51.77 kB / 429.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.778e-05/0.1137, allocations: 16 kB / 429.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.1138, allocations: 12 kB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.1138, allocations: 23.92 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.752e-05/0.1139, allocations: 59.66 kB / 429.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1141, allocations: 131.4 kB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1141, allocations: 0 / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.1141, allocations: 0 / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1141, allocations: 4 kB / 430.1 MB, free: 1.648 MB / 350.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.0006795/0.1148, allocations: 436.9 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1149, allocations: 8.031 kB / 430.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.423e-05/0.1149, allocations: 50.67 kB / 430.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.1149, allocations: 16.84 kB / 430.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1152, allocations: 212.1 kB / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.1152, allocations: 8.375 kB / 430.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.1153, allocations: 12.38 kB / 430.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.1158, allocations: 254.7 kB / 431 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1158, allocations: 0 / 431 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.1158, allocations: 4 kB / 431 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1158, allocations: 4 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.1161, allocations: 91.88 kB / 431.1 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2295/0.3456, allocations: 0.586 MB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.346, allocations: 145 kB / 431.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.3462, allocations: 71.44 kB / 431.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.3462, allocations: 2.406 kB / 431.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.3462, allocations: 44.34 kB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.524e-06/0.3462, allocations: 3.812 kB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005742/0.3468, allocations: 181.9 kB / 432.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.3469, allocations: 117.3 kB / 432.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.364e-05/0.347, allocations: 128.9 kB / 432.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.347, allocations: 27.58 kB / 432.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.347, allocations: 115.8 kB / 432.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.3471, allocations: 24.97 kB / 432.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.3471, allocations: 37.3 kB / 432.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.3472, allocations: 324.5 kB / 432.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.3473, allocations: 33.84 kB / 433 MB, free: 10.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.3475, allocations: 137.9 kB / 433.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.3477, allocations: 191.4 kB / 433.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3477, allocations: 4.875 kB / 433.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000346/0.3481, allocations: 201 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3481, allocations: 6.5 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3481, allocations: 3.438 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.3481, allocations: 8.469 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.3483, allocations: 45.34 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.3483, allocations: 5.812 kB / 433.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.3484, allocations: 26.39 kB / 433.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.3484, allocations: 7.625 kB / 433.6 MB, free: 9.75 MB / 350.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 8.962e-05/0.3485, allocations: 139 kB / 433.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.3487, allocations: 89.22 kB / 433.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.699e-05/0.3488, allocations: 16.83 kB / 433.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3488, allocations: 3 kB / 433.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3488, allocations: 1.188 kB / 433.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3488, allocations: 0.5312 kB / 433.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.349, allocations: 211.9 kB / 434 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.349, allocations: 0.5625 kB / 434 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.3492, allocations: 37.28 kB / 434.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3492, allocations: 1.312 kB / 434.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.3492, allocations: 5.75 kB / 434.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3492, allocations: 5.344 kB / 434.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3492, allocations: 2.688 kB / 434.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004567/0.3497, allocations: 378.7 kB / 434.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.3497, allocations: 97.98 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.3498, allocations: 7 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.3499, allocations: 6.406 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.3499, allocations: 7.016 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.3499, allocations: 4.156 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.409e-05/0.35, allocations: 104 kB / 434.7 MB, free: 9 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.35, allocations: 0 / 434.7 MB, free: 9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3503, allocations: 27.03 kB / 434.7 MB, free: 9 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.0005938/0.3509, allocations: 0.9179 MB / 435.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.3512, allocations: 116.1 kB / 435.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3512, allocations: 5.375 kB / 435.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.068e-05/0.3513, allocations: 31.16 kB / 435.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.3518, allocations: 52.17 kB / 435.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.3538, allocations: 2.065 MB / 437.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.3539, allocations: 0.7138 MB / 438.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.17e-05/0.354, allocations: 9.656 kB / 438.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.984e-05/0.3541, allocations: 37.81 kB / 438.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3541, allocations: 3.062 kB / 438.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.3857, allocations: 2.822 MB / 441.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.597/8.983, allocations: 4.906 kB / 441.5 MB, free: 5.477 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.444715851917863] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.051707015838474 9.066786703 8.94950791 Calling exit ...