Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001895/0.001895, allocations: 116.8 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.002413/0.002413, allocations: 212.9 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.626/1.626, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.SuperSampled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",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.001944/0.001944, allocations: 75.81 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1355, allocations: 53.32 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004011/0.1395, allocations: 2.35 MB / 429.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.1411, allocations: 0.8066 MB / 430.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1413, allocations: 7.938 kB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.1416, allocations: 51.58 kB / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.1418, allocations: 63.55 kB / 430.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004876/0.1423, allocations: 159.7 kB / 430.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.1427, allocations: 375.6 kB / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.1429, allocations: 67.41 kB / 430.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003355/0.1433, allocations: 183.4 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.1436, allocations: 175.3 kB / 431.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.1436, allocations: 36 kB / 431.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.1437, allocations: 32 kB / 431.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1438, allocations: 95.72 kB / 431.4 MB, free: 420 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.1439, allocations: 139.3 kB / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2873/0.4313, allocations: 327.2 kB / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.314e-05/0.4313, allocations: 0.5 kB / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.4313, allocations: 0 / 431.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.4313, allocations: 0.5938 kB / 431.8 MB, free: 8.277 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001656/0.433, allocations: 0.617 MB / 432.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.837e-05/0.433, allocations: 11.38 kB / 432.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.498e-05/0.4331, allocations: 72.28 kB / 432.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.4332, allocations: 37.91 kB / 432.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.4337, allocations: 272.4 kB / 432.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.4339, allocations: 139.7 kB / 433 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-05/0.434, allocations: 33.61 kB / 433 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.4354, allocations: 0.5352 MB / 433.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.4354, allocations: 2.344 kB / 433.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/0.4355, allocations: 10.31 kB / 433.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.4355, allocations: 10.88 kB / 433.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.4369, allocations: 0.5214 MB / 434.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.4384, allocations: 1.003 MB / 435.1 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.4401, allocations: 479.7 kB / 435.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006862/0.4408, allocations: 234.9 kB / 435.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.4409, allocations: 6.062 kB / 435.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.4409, allocations: 41.83 kB / 435.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.803e-06/0.4409, allocations: 2.719 kB / 435.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04176/0.4827, allocations: 5.722 MB / 441.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.42e-05/0.4828, allocations: 150.4 kB / 441.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.483, allocations: 209.6 kB / 441.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.299e-05/0.483, allocations: 37.23 kB / 441.9 MB, free: 6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.4831, allocations: 141.9 kB / 442.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.4833, allocations: 201.1 kB / 442.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.4836, allocations: 108.8 kB / 442.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.4836, allocations: 342.5 kB / 442.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.4853, allocations: 0.6165 MB / 443.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.4869, allocations: 0.8004 MB / 444.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.49, allocations: 1.247 MB / 445.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.49, allocations: 5.812 kB / 445.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003675/0.4936, allocations: 1.394 MB / 446.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.4937, allocations: 8.156 kB / 446.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.4937, allocations: 5.344 kB / 446.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/0.4937, allocations: 10.3 kB / 446.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.4951, allocations: 211.9 kB / 447 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.4951, allocations: 13.5 kB / 447 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009691/0.496, allocations: 103.9 kB / 447.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.434e-05/0.4961, allocations: 26.86 kB / 447.1 MB, free: 3.383 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.0003299/0.4965, allocations: 188.9 kB / 447.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.4968, allocations: 158.9 kB / 447.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/0.4969, allocations: 60.48 kB / 447.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.497, allocations: 7.094 kB / 447.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.497, allocations: 4.219 kB / 447.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.497, allocations: 5.219 kB / 447.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/0.5014, allocations: 2.176 MB / 449.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.5014, allocations: 15.86 kB / 449.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.5021, allocations: 181.8 kB / 449.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-05/0.5021, allocations: 13 kB / 449.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.5022, allocations: 24.12 kB / 450 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.755e-05/0.5022, allocations: 22.53 kB / 450 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/0.5022, allocations: 14.94 kB / 450 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.5052, allocations: 1.552 MB / 451.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.5053, allocations: 167.6 kB / 451.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.223e-05/0.5054, allocations: 23.31 kB / 451.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.506, allocations: 84.97 kB / 451.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.5062, allocations: 94.03 kB / 451.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.008e-05/0.5062, allocations: 34.08 kB / 451.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001284/0.5063, allocations: 145.1 kB / 452.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5063, allocations: 1.281 kB / 452.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.507, allocations: 117.2 kB / 452.2 MB, free: 0.5352 MB / 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.003599/0.5106, allocations: 2.118 MB / 454.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002979/0.5136, allocations: 1.038 MB / 455.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.5136, allocations: 2.5 kB / 455.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.5147, allocations: 337.4 kB / 455.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/0.5157, allocations: 128.4 kB / 455.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.5306, allocations: 6.777 MB / 462.6 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.5311, allocations: 0.8092 MB / 463.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004951/0.5316, allocations: 96.03 kB / 463.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/0.532, allocations: 117.2 kB / 463.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.532, allocations: 0 / 463.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04015/0.5721, allocations: 11.29 MB / 474.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.062/9.634, allocations: 4.516 kB / 474.9 MB, free: 15.25 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_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_SuperSampled.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.393746850080788] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.710305043961853 9.734370342 9.298178097 Calling exit ...