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.001883/0.001883, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.00268/0.00268, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.532/1.532, allocations: 230.4 MB / 254.7 MB, free: 15.23 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.001998/0.001998, allocations: 67.84 kB / 373.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1198, allocations: 53.31 MB / 426.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003877/0.1237, allocations: 2.169 MB / 429 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.1253, allocations: 0.69 MB / 429.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.1255, allocations: 7.938 kB / 429.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003452/0.1258, allocations: 43.64 kB / 429.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.126, allocations: 51.61 kB / 429.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.1264, allocations: 127.8 kB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004337/0.1268, allocations: 339.2 kB / 430.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.127, allocations: 52.36 kB / 430.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003233/0.1274, allocations: 151.5 kB / 430.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.1276, allocations: 155.5 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-05/0.1277, allocations: 28 kB / 430.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.253e-05/0.1277, allocations: 32 kB / 430.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1278, allocations: 91.72 kB / 430.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.128, allocations: 119.4 kB / 430.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003974/0.1284, allocations: 282.9 kB / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1284, allocations: 4 kB / 431.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1284, allocations: 3.938 kB / 431.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.1284, allocations: 0 / 431.2 MB, free: 0.5977 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001287/0.1297, allocations: 0.588 MB / 431.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1297, allocations: 8.031 kB / 431.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.675e-05/0.1298, allocations: 58.69 kB / 431.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.382e-05/0.1299, allocations: 32.8 kB / 431.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.1303, allocations: 256.5 kB / 432.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/0.1306, allocations: 137.9 kB / 432.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.1307, allocations: 28 kB / 432.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008445/0.1315, allocations: 367.5 kB / 432.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1315, allocations: 3.953 kB / 432.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.1316, allocations: 12 kB / 432.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1316, allocations: 4 kB / 432.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.1329, allocations: 497.9 kB / 433.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.1348, allocations: 1.015 MB / 434.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.136, allocations: 313 kB / 434.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.1365, allocations: 173.1 kB / 434.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.892e-05/0.1366, allocations: 240 / 434.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.404e-05/0.1366, allocations: 34.8 kB / 434.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.262e-06/0.1366, allocations: 0 / 434.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.02695/0.1636, allocations: 5.799 MB / 440.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.1636, allocations: 63.83 kB / 440.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1639, allocations: 194.3 kB / 440.7 MB, free: 6.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.746e-05/0.164, allocations: 37.7 kB / 440.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1641, allocations: 153 kB / 440.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.1643, allocations: 186.4 kB / 441.1 MB, free: 6.352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.1645, allocations: 86.22 kB / 441.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1647, allocations: 342.8 kB / 441.5 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.1659, allocations: 468.8 kB / 442 MB, free: 5.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.1672, allocations: 0.5099 MB / 442.5 MB, free: 4.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002286/0.1695, allocations: 0.8071 MB / 443.3 MB, free: 4.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1695, allocations: 0 / 443.3 MB, free: 4.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002779/0.1723, allocations: 0.9907 MB / 444.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.1723, allocations: 11.94 kB / 444.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1723, allocations: 0 / 444.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.1724, allocations: 7.938 kB / 444.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009929/0.1734, allocations: 171.7 kB / 444.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.1734, allocations: 4 kB / 444.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006755/0.174, allocations: 83.92 kB / 444.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.542e-05/0.1741, allocations: 20 kB / 444.6 MB, free: 2.824 MB / 366.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.0002404/0.1743, allocations: 157.7 kB / 444.7 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-05/0.1744, allocations: 35.75 kB / 444.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.1746, allocations: 51.3 kB / 444.8 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1746, allocations: 8 kB / 444.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1746, allocations: 0 / 444.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1746, allocations: 0 / 444.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004209/0.1788, allocations: 1.874 MB / 446.7 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.1788, allocations: 8 kB / 446.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000647/0.1795, allocations: 144.4 kB / 446.8 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.828e-05/0.1795, allocations: 19.94 kB / 446.8 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/0.1795, allocations: 23.98 kB / 446.9 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.357e-05/0.1795, allocations: 11.94 kB / 446.9 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/0.1795, allocations: 15.94 kB / 446.9 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2298/0.4093, allocations: 1.211 MB / 448.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002415/0.4095, allocations: 151 kB / 448.3 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/0.4096, allocations: 18.88 kB / 448.3 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005313/0.4101, allocations: 70.17 kB / 448.3 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.4104, allocations: 92.12 kB / 448.4 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.4104, allocations: 21.97 kB / 448.5 MB, free: 24.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.4106, allocations: 151 kB / 448.6 MB, free: 24.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4106, allocations: 0 / 448.6 MB, free: 24.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005158/0.4111, allocations: 94.22 kB / 448.7 MB, free: 24.56 MB / 366.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.002996/0.4141, allocations: 1.779 MB / 450.5 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.4165, allocations: 0.7823 MB / 451.3 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/0.4166, allocations: 5.125 kB / 451.3 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.4176, allocations: 320.1 kB / 451.6 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008271/0.4184, allocations: 65.23 kB / 451.6 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.4289, allocations: 5.227 MB / 456.9 MB, free: 20.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.4292, allocations: 0.7845 MB / 457.6 MB, free: 19.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004221/0.4296, allocations: 89.88 kB / 457.7 MB, free: 19.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.4298, allocations: 93.36 kB / 457.8 MB, free: 19.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4298, allocations: 3.062 kB / 457.8 MB, free: 19.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03714/0.467, allocations: 8.396 MB / 466.2 MB, free: 18.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.843/9.31, allocations: 10.81 kB / 466.2 MB, free: 18.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 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.767369657289237] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.384956504683942 9.408222347 9.275463058 Calling exit ...