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.001634/0.001634, 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.002207/0.002207, allocations: 212 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.541/1.541, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.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.002043/0.002043, allocations: 68.75 kB / 378.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.347, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.0036/0.3506, allocations: 2.031 MB / 433.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.3516, allocations: 0.5531 MB / 434.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.3517, allocations: 4 kB / 434.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3518, allocations: 15.8 kB / 434.5 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.311e-05/0.3519, allocations: 27.72 kB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.3522, allocations: 55.88 kB / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.3524, allocations: 119.6 kB / 434.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.3526, allocations: 49.59 kB / 434.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.3527, allocations: 47.8 kB / 434.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.397e-05/0.3527, allocations: 55.77 kB / 434.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.3528, allocations: 8 kB / 434.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.788e-05/0.3528, allocations: 12 kB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.3528, allocations: 27.91 kB / 434.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.758e-05/0.3529, allocations: 55.67 kB / 435 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.3531, allocations: 128.2 kB / 435.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3531, allocations: 0 / 435.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3531, allocations: 4 kB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3531, allocations: 0 / 435.1 MB, free: 3.707 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.0006076/0.3537, allocations: 345.8 kB / 435.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3538, allocations: 16.02 kB / 435.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.3538, allocations: 38.75 kB / 435.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.3539, allocations: 20.84 kB / 435.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.3541, allocations: 146.3 kB / 435.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.3541, allocations: 12.38 kB / 435.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.3542, allocations: 16.33 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.3547, allocations: 254.7 kB / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3547, allocations: 0 / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.3547, allocations: 8 kB / 435.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.3547, allocations: 0 / 435.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.355, allocations: 90.55 kB / 436 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.3556, allocations: 0.5388 MB / 436.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.3559, allocations: 139.9 kB / 436.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.356, allocations: 66.64 kB / 436.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.3561, allocations: 3.938 kB / 436.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.3561, allocations: 42.55 kB / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.143e-06/0.3561, allocations: 0 / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005009/0.3566, allocations: 181.3 kB / 437 MB, free: 1.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.3567, allocations: 110.8 kB / 437.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3568, allocations: 130.1 kB / 437.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.3568, allocations: 25.7 kB / 437.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.3569, allocations: 123.8 kB / 437.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.3569, allocations: 27.78 kB / 437.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.357, allocations: 33.84 kB / 437.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3571, allocations: 322.8 kB / 437.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.3572, allocations: 35.97 kB / 437.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.3574, allocations: 132.8 kB / 437.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.3577, allocations: 176.7 kB / 438.1 MB, free: 384 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3577, allocations: 0 / 438.1 MB, free: 384 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003742/0.3581, allocations: 189.5 kB / 438.3 MB, free: 188 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3581, allocations: 8 kB / 438.3 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3581, allocations: 7.938 kB / 438.3 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3581, allocations: 4 kB / 438.3 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.3583, allocations: 51.89 kB / 438.3 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3583, allocations: 4 kB / 438.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.833e-05/0.3584, allocations: 24.25 kB / 438.4 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.3584, allocations: 16 kB / 438.4 MB, free: 72 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.0001308/0.3586, allocations: 125.7 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.3587, allocations: 81.58 kB / 438.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.71e-05/0.3587, allocations: 20.66 kB / 438.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3587, allocations: 0 / 438.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.3588, allocations: 7.938 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3588, allocations: 3.984 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.359, allocations: 172.7 kB / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.359, allocations: 480 / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.3592, allocations: 43.91 kB / 438.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3592, allocations: 0 / 438.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.3592, allocations: 7.938 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3592, allocations: 0 / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3592, allocations: 3.938 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/0.3597, allocations: 375.5 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.3598, allocations: 11.92 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.3598, allocations: 3.938 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.3599, allocations: 19.94 kB / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.36, allocations: 3.984 kB / 439.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.36, allocations: 4 kB / 439.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.871e-05/0.36, allocations: 102.4 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.36, allocations: 4.062 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.3603, allocations: 27.95 kB / 439.4 MB, free: 14.99 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.0007963/0.3611, allocations: 0.9146 MB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.3614, allocations: 111.8 kB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3615, allocations: 0.875 kB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.606e-05/0.3615, allocations: 31.97 kB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.362, allocations: 51.92 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.3644, allocations: 2.037 MB / 442.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.3648, allocations: 0.7045 MB / 443.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.916e-05/0.3648, allocations: 16.64 kB / 443.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.056e-05/0.3649, allocations: 35.42 kB / 443.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3649, allocations: 0 / 443.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.3933, allocations: 2.836 MB / 446.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.326/8.719, allocations: 16.05 kB / 446.1 MB, free: 8.152 MB / 350.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 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: 11.350595769006759] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.792524016927928 8.817431152 8.46061168 Calling exit ...