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.001765/0.001765, allocations: 105 kB / 21.22 MB, free: 0.6758 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.0021/0.0021, allocations: 209.7 kB / 24.53 MB, free: 4.035 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.539/1.539, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.001966/0.001966, allocations: 64.77 kB / 378.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2926, allocations: 53.36 MB / 431.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003768/0.2964, allocations: 2.055 MB / 434 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2975, allocations: 0.5648 MB / 434.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.2977, allocations: 11.88 kB / 434.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.2978, allocations: 15.8 kB / 434.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.298, allocations: 31.77 kB / 434.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.2983, allocations: 55.88 kB / 434.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.2985, allocations: 127.5 kB / 434.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.2987, allocations: 45.56 kB / 434.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2988, allocations: 47.86 kB / 434.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.865e-05/0.2989, allocations: 59.64 kB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.2989, allocations: 12 kB / 434.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.2989, allocations: 8 kB / 434.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.837e-05/0.299, allocations: 27.91 kB / 434.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.857e-05/0.299, allocations: 59.67 kB / 435 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.2993, allocations: 136.2 kB / 435.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2993, allocations: 0 / 435.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2993, allocations: 0 / 435.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.2993, allocations: 0 / 435.1 MB, free: 3.68 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.0006776/0.3, allocations: 361.8 kB / 435.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3, allocations: 8.031 kB / 435.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.005e-05/0.3001, allocations: 46.73 kB / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.3001, allocations: 16.84 kB / 435.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.3004, allocations: 156.6 kB / 435.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.3004, allocations: 12.38 kB / 435.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.3004, allocations: 20.38 kB / 435.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.3009, allocations: 242.7 kB / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.301, allocations: 4 kB / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.301, allocations: 4 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.301, allocations: 4 kB / 436 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.3012, allocations: 91.86 kB / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007459/0.302, allocations: 0.5349 MB / 436.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.3024, allocations: 139.9 kB / 436.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.3025, allocations: 70.64 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.3026, allocations: 11.97 kB / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.3026, allocations: 38.56 kB / 436.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.3026, allocations: 0 / 436.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005441/0.3032, allocations: 181.4 kB / 437.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.055e-05/0.3032, allocations: 119.2 kB / 437.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.3034, allocations: 133.3 kB / 437.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3034, allocations: 29.7 kB / 437.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.3035, allocations: 119.9 kB / 437.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.3035, allocations: 23.84 kB / 437.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.343e-05/0.3036, allocations: 37.7 kB / 437.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3037, allocations: 318.8 kB / 437.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3038, allocations: 35.98 kB / 437.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.304, allocations: 139.2 kB / 438 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.3043, allocations: 185.5 kB / 438.2 MB, free: 304 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.289e-06/0.3043, allocations: 3.938 kB / 438.2 MB, free: 300 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003817/0.3047, allocations: 201.5 kB / 438.4 MB, free: 92 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3047, allocations: 8 kB / 438.4 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.3048, allocations: 4 kB / 438.4 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3048, allocations: 4 kB / 438.4 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.3049, allocations: 47.91 kB / 438.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.305, allocations: 7.938 kB / 438.4 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.3051, allocations: 19.89 kB / 438.5 MB, free: 0 / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.3051, allocations: 8.047 kB / 438.5 MB, free: 15.99 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 0.0001415/0.3052, allocations: 138.4 kB / 438.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3054, allocations: 89.58 kB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.22e-05/0.3055, allocations: 12.72 kB / 438.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3055, allocations: 4 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3055, allocations: 0 / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3055, allocations: 7.922 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.3058, allocations: 180.6 kB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3058, allocations: 0 / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.306, allocations: 39.91 kB / 438.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.306, allocations: 4 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.306, allocations: 8 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.306, allocations: 0 / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.306, allocations: 0 / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.3066, allocations: 383.6 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.997e-05/0.3066, allocations: 19.88 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.3066, allocations: 3.984 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.3068, allocations: 15.98 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.3068, allocations: 3.984 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.3068, allocations: 8.094 kB / 439.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.352e-05/0.3069, allocations: 103.2 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3069, allocations: 0 / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.3072, allocations: 28.06 kB / 439.5 MB, free: 14.88 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.0008604/0.3081, allocations: 0.9186 MB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003449/0.3084, allocations: 115.8 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3084, allocations: 0 / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.72e-05/0.3085, allocations: 32.84 kB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.309, allocations: 56.06 kB / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.3117, allocations: 2.05 MB / 442.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.3121, allocations: 0.7162 MB / 443.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.888e-05/0.3121, allocations: 9.094 kB / 443.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.964e-05/0.3122, allocations: 39.41 kB / 443.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3122, allocations: 0 / 443.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.3449, allocations: 2.901 MB / 446.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.46/8.805, allocations: 7.438 kB / 446.3 MB, free: 7.945 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 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.370215317234397] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.877293257974088 8.904259826 8.600127346 Calling exit ...