Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001254/0.001254, allocations: 120 kB / 18.5 MB, free: 4.52 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.001368/0.001368, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.8 MB, free: 15.12 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.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.002/0.002, allocations: 71.84 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1206, allocations: 53.32 MB / 427 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004345/0.125, allocations: 2.368 MB / 429.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.1267, allocations: 0.8455 MB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.1269, allocations: 11.88 kB / 430.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003145/0.1272, allocations: 59.58 kB / 430.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.1274, allocations: 55.55 kB / 430.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000529/0.1279, allocations: 178.8 kB / 430.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.1284, allocations: 383.6 kB / 430.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.1286, allocations: 75.78 kB / 430.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.1289, allocations: 175.4 kB / 431.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.1292, allocations: 183.2 kB / 431.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.1293, allocations: 32 kB / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.438e-05/0.1293, allocations: 36 kB / 431.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.1295, allocations: 95.72 kB / 431.5 MB, free: 340 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.1296, allocations: 147.2 kB / 431.6 MB, free: 192 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2657/0.3953, allocations: 336.9 kB / 431.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3953, allocations: 0.8438 kB / 431.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.3953, allocations: 0 / 431.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.3953, allocations: 3.062 kB / 431.9 MB, free: 8.324 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001368/0.3967, allocations: 0.6236 MB / 432.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3967, allocations: 9.344 kB / 432.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.404e-05/0.3968, allocations: 73.58 kB / 432.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.443e-05/0.3969, allocations: 44.55 kB / 432.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.3973, allocations: 273.6 kB / 433 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.3975, allocations: 142.2 kB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.3976, allocations: 30.31 kB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.3991, allocations: 0.5672 MB / 433.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3992, allocations: 1.25 kB / 433.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.3992, allocations: 10.86 kB / 433.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3992, allocations: 7.625 kB / 433.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.4007, allocations: 0.5092 MB / 434.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.4027, allocations: 1.018 MB / 435.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/0.4048, allocations: 478.4 kB / 435.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007339/0.4055, allocations: 236.2 kB / 435.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-05/0.4056, allocations: 9.312 kB / 435.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.4056, allocations: 42.94 kB / 436 MB, free: 6.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.4056, allocations: 0 / 436 MB, free: 6.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04176/0.4474, allocations: 5.723 MB / 441.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.4475, allocations: 148.8 kB / 441.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.4477, allocations: 198.3 kB / 442 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.929e-05/0.4478, allocations: 36.33 kB / 442.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.445e-05/0.4479, allocations: 144.1 kB / 442.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.4481, allocations: 202.1 kB / 442.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/0.4484, allocations: 118.3 kB / 442.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4485, allocations: 342 kB / 442.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001677/0.4502, allocations: 0.6139 MB / 443.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.452, allocations: 0.7979 MB / 444.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003102/0.4551, allocations: 1.254 MB / 445.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.4551, allocations: 5.156 kB / 445.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003682/0.4588, allocations: 1.396 MB / 446.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.4588, allocations: 7.422 kB / 446.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4588, allocations: 5.344 kB / 446.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.422e-05/0.4588, allocations: 9.688 kB / 447 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.4603, allocations: 208.8 kB / 447.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.4603, allocations: 10.14 kB / 447.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009801/0.4613, allocations: 110.6 kB / 447.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.733e-05/0.4614, allocations: 25.89 kB / 447.3 MB, free: 3.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003593/0.4617, allocations: 183.5 kB / 447.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/0.4621, allocations: 159.3 kB / 447.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.4623, allocations: 60.36 kB / 447.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.4623, allocations: 8.766 kB / 447.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.4623, allocations: 5.688 kB / 447.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4623, allocations: 4.484 kB / 447.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004722/0.467, allocations: 2.17 MB / 449.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.467, allocations: 12.48 kB / 449.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/0.4678, allocations: 180.6 kB / 450.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.4678, allocations: 13.81 kB / 450.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.413e-05/0.4679, allocations: 29.23 kB / 450.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.92e-05/0.4679, allocations: 21.77 kB / 450.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/0.4679, allocations: 13.47 kB / 450.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/0.471, allocations: 1.57 MB / 451.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.4712, allocations: 158.9 kB / 451.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.276e-05/0.4713, allocations: 28.2 kB / 451.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005891/0.4719, allocations: 76.42 kB / 452 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.472, allocations: 98.83 kB / 452.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.898e-05/0.4721, allocations: 29.66 kB / 452.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.4722, allocations: 141.6 kB / 452.2 MB, free: 500 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4722, allocations: 7.719 kB / 452.2 MB, free: 496 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007612/0.473, allocations: 122.6 kB / 452.4 MB, free: 476 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003702/0.4767, allocations: 2.125 MB / 454.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003084/0.4798, allocations: 1.023 MB / 455.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.4798, allocations: 5.781 kB / 455.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.4808, allocations: 333.6 kB / 455.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009882/0.4818, allocations: 136.5 kB / 456 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.4965, allocations: 6.784 MB / 462.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.497, allocations: 0.8137 MB / 463.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005438/0.4976, allocations: 101.1 kB / 463.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004306/0.498, allocations: 112.9 kB / 463.8 MB, free: 8.105 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.498, allocations: 0 / 463.8 MB, free: 8.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04394/0.5419, allocations: 11.36 MB / 475.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.989/9.53, allocations: 11.98 kB / 475.2 MB, free: 15.07 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.212208450771868] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.609771623276174 9.640179311 9.238890789 Calling exit ...