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.00185/0.00185, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001499/0.001499, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.001977/0.001977, allocations: 68.77 kB / 378.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3454, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00374/0.3491, allocations: 2.176 MB / 434.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.3505, allocations: 0.6899 MB / 434.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.3507, allocations: 11.94 kB / 434.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.351, allocations: 47.64 kB / 434.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3511, allocations: 47.62 kB / 434.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.3515, allocations: 131.7 kB / 435 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.3519, allocations: 343.2 kB / 435.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.3521, allocations: 60.5 kB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.3524, allocations: 147.5 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.3526, allocations: 155.4 kB / 435.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-05/0.3527, allocations: 32 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.774e-05/0.3527, allocations: 28 kB / 435.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3528, allocations: 91.78 kB / 435.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.353, allocations: 119.4 kB / 436 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.3533, allocations: 283.7 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3533, allocations: 0 / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3533, allocations: 0 / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.3533, allocations: 4 kB / 436.2 MB, free: 2.551 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001106/0.3545, allocations: 0.5127 MB / 436.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3545, allocations: 12.03 kB / 436.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.3546, allocations: 62.73 kB / 436.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.748e-05/0.3546, allocations: 32.8 kB / 436.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004202/0.3551, allocations: 192.7 kB / 437 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/0.3554, allocations: 355.5 kB / 437.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.3554, allocations: 20 kB / 437.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008081/0.3562, allocations: 366.6 kB / 437.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.3562, allocations: 3.953 kB / 437.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.3563, allocations: 15.94 kB / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3563, allocations: 7.938 kB / 437.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.3575, allocations: 0.4898 MB / 438.3 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.3592, allocations: 0.9421 MB / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.3603, allocations: 327 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.3608, allocations: 157.2 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.3608, allocations: 4.234 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.3608, allocations: 34.8 kB / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/0.3608, allocations: 0 / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02498/0.3858, allocations: 5.659 MB / 445.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.3859, allocations: 55.84 kB / 445.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.3862, allocations: 199.7 kB / 445.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.919e-05/0.3862, allocations: 37.7 kB / 445.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.3863, allocations: 149 kB / 445.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.3865, allocations: 186.4 kB / 446 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.3867, allocations: 94.3 kB / 446.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3868, allocations: 338.8 kB / 446.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.388, allocations: 464.9 kB / 446.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.3893, allocations: 0.5186 MB / 447.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/0.3914, allocations: 0.8023 MB / 448.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3914, allocations: 0 / 448.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002547/0.3939, allocations: 0.9969 MB / 449.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.394, allocations: 7.984 kB / 449.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.394, allocations: 4 kB / 449.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.394, allocations: 4 kB / 449.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.3949, allocations: 159.8 kB / 449.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3949, allocations: 7.984 kB / 449.4 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006421/0.3956, allocations: 91.91 kB / 449.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.3956, allocations: 19.94 kB / 449.5 MB, free: 4.941 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.0002418/0.3959, allocations: 149.8 kB / 449.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.3959, allocations: 31.75 kB / 449.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.3961, allocations: 55.3 kB / 449.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.3961, allocations: 8 kB / 449.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3961, allocations: 0 / 449.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.3961, allocations: 7.984 kB / 449.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003969/0.4001, allocations: 1.842 MB / 451.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.4001, allocations: 8 kB / 451.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006285/0.4007, allocations: 151.7 kB / 451.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.557e-05/0.4007, allocations: 12 kB / 451.7 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.4008, allocations: 20.41 kB / 451.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-05/0.4008, allocations: 19.92 kB / 451.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/0.4008, allocations: 12 kB / 451.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/0.4034, allocations: 1.232 MB / 453 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.4036, allocations: 67.84 kB / 453.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.4037, allocations: 23.98 kB / 453.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.4042, allocations: 75.86 kB / 453.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.4044, allocations: 87.7 kB / 453.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.049e-05/0.4044, allocations: 24 kB / 453.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.4046, allocations: 147.5 kB / 453.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4046, allocations: 0 / 453.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004939/0.4051, allocations: 99.94 kB / 453.5 MB, free: 0.5859 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.003038/0.4081, allocations: 1.788 MB / 455.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.4104, allocations: 0.7747 MB / 456.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.4104, allocations: 0 / 456.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009071/0.4113, allocations: 325.8 kB / 456.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.4119, allocations: 55.97 kB / 456.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.4225, allocations: 5.25 MB / 461.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.4229, allocations: 0.784 MB / 462.5 MB, free: 7.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004196/0.4233, allocations: 79.19 kB / 462.6 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.4236, allocations: 87.42 kB / 462.7 MB, free: 6.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4236, allocations: 0 / 462.7 MB, free: 6.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.461, allocations: 8.783 MB / 471.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.736/9.197, allocations: 13.48 kB / 471.5 MB, free: 14.3 MB / 382.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.770651226863265] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.269284798298031 9.283724293 8.927304781 Calling exit ...