Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.00161/0.00161, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001807/0.001807, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.602/1.602, allocations: 230.5 MB / 254.8 MB, free: 14.91 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.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.002027/0.002027, allocations: 75.81 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1135, allocations: 53.33 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003894/0.1174, allocations: 2.172 MB / 429.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1188, allocations: 0.6783 MB / 429.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.119, allocations: 7.938 kB / 429.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.1194, allocations: 47.64 kB / 429.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.1196, allocations: 51.62 kB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.12, allocations: 119.8 kB / 430.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004769/0.1204, allocations: 343.2 kB / 430.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1206, allocations: 52.33 kB / 430.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003899/0.121, allocations: 155.5 kB / 430.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.1213, allocations: 159.4 kB / 430.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.774e-05/0.1213, allocations: 28 kB / 430.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.1214, allocations: 32 kB / 430.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1215, allocations: 87.73 kB / 430.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1216, allocations: 119.4 kB / 431 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.122, allocations: 290.8 kB / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.122, allocations: 4 kB / 431.3 MB, free: 468 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.122, allocations: 4 kB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.122, allocations: 0 / 431.3 MB, free: 464 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.264/0.3861, allocations: 0.5758 MB / 431.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3861, allocations: 8.844 kB / 431.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.043e-05/0.3862, allocations: 61.42 kB / 432 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.3863, allocations: 32.2 kB / 432 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.3867, allocations: 252.4 kB / 432.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.3869, allocations: 131.4 kB / 432.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.297e-05/0.3869, allocations: 28.02 kB / 432.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008981/0.3878, allocations: 369.7 kB / 432.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.3878, allocations: 4.641 kB / 432.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.3879, allocations: 10.34 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3879, allocations: 12.94 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.3893, allocations: 495 kB / 433.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.3909, allocations: 1.009 MB / 434.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.3921, allocations: 316.7 kB / 434.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.3925, allocations: 163.5 kB / 434.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.3926, allocations: 3.953 kB / 434.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.3926, allocations: 39.58 kB / 434.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.3926, allocations: 0 / 434.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02872/0.4213, allocations: 5.8 MB / 440.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.4214, allocations: 61.22 kB / 440.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.4216, allocations: 197.8 kB / 440.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.4217, allocations: 32.2 kB / 440.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/0.4217, allocations: 153 kB / 441 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.4219, allocations: 185.7 kB / 441.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.4221, allocations: 97.66 kB / 441.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/0.4222, allocations: 333.3 kB / 441.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.4235, allocations: 470.4 kB / 442.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.4249, allocations: 0.517 MB / 442.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/0.4273, allocations: 0.8023 MB / 443.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.4273, allocations: 0 / 443.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002899/0.4302, allocations: 0.9892 MB / 444.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4302, allocations: 11.41 kB / 444.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4302, allocations: 6.344 kB / 444.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.4303, allocations: 3.219 kB / 444.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.4313, allocations: 167.8 kB / 444.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.4313, allocations: 3.25 kB / 444.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007056/0.432, allocations: 87.75 kB / 444.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.432, allocations: 17.33 kB / 444.7 MB, free: 6.895 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002129/0.4323, allocations: 160.2 kB / 444.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.648e-05/0.4323, allocations: 27.53 kB / 444.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.4325, allocations: 53.64 kB / 444.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4325, allocations: 4.812 kB / 444.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.4325, allocations: 1.25 kB / 444.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4325, allocations: 9.906 kB / 444.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004067/0.4366, allocations: 1.872 MB / 446.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.4366, allocations: 7.188 kB / 446.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006551/0.4372, allocations: 141.6 kB / 446.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.256e-05/0.4373, allocations: 11.06 kB / 446.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.4373, allocations: 29.12 kB / 447 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.601e-05/0.4373, allocations: 16.75 kB / 447 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.4373, allocations: 13.69 kB / 447 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.44, allocations: 1.23 MB / 448.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.4402, allocations: 147.4 kB / 448.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.4402, allocations: 20 kB / 448.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.4408, allocations: 74.33 kB / 448.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.4409, allocations: 91.05 kB / 448.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.441, allocations: 23.25 kB / 448.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.4411, allocations: 143 kB / 448.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4411, allocations: 1.375 kB / 448.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005253/0.4417, allocations: 99.75 kB / 448.8 MB, free: 4.645 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.002926/0.4446, allocations: 1.782 MB / 450.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.4469, allocations: 0.7841 MB / 451.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4469, allocations: 1.094 kB / 451.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009034/0.4478, allocations: 319.4 kB / 451.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.4484, allocations: 62.09 kB / 451.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/0.4589, allocations: 5.241 MB / 457 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.4595, allocations: 0.7814 MB / 457.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.4599, allocations: 84.5 kB / 457.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.4602, allocations: 94.41 kB / 458 MB, free: 14.23 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4602, allocations: 4 kB / 458 MB, free: 14.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03529/0.4955, allocations: 8.394 MB / 466.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.616/9.111, allocations: 15.36 kB / 466.4 MB, free: 9.781 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.906424586195499] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.185509300790727 9.210347474 9.083915704 Calling exit ...