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.001814/0.001814, 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.002281/0.002281, 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.554/1.554, allocations: 230.5 MB / 254.7 MB, free: 15 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.001999/0.001999, allocations: 68.09 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1056, allocations: 53.32 MB / 426.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003822/0.1094, allocations: 2.341 MB / 429.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.1109, allocations: 0.8105 MB / 430 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.1111, allocations: 11.94 kB / 430 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.1114, allocations: 47.58 kB / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.1116, allocations: 59.56 kB / 430.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.112, allocations: 167.6 kB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.1125, allocations: 375.6 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.1126, allocations: 71.39 kB / 430.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.1129, allocations: 179.4 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.1132, allocations: 171.3 kB / 431.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.454e-05/0.1132, allocations: 36 kB / 431.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1133, allocations: 32 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1134, allocations: 95.72 kB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1135, allocations: 147.2 kB / 431.4 MB, free: 336 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.1139, allocations: 326.6 kB / 431.7 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1139, allocations: 0 / 431.7 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1139, allocations: 0 / 431.7 MB, free: 8 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.1139, allocations: 0 / 431.7 MB, free: 8 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.1782/0.2921, allocations: 0.6129 MB / 432.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.2922, allocations: 10.22 kB / 432.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.742e-05/0.2922, allocations: 68.19 kB / 432.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.435e-05/0.2923, allocations: 38.75 kB / 432.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.2928, allocations: 274.4 kB / 432.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.2929, allocations: 138.6 kB / 432.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.346e-05/0.293, allocations: 37.55 kB / 432.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.2941, allocations: 0.5446 MB / 433.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.2941, allocations: 1.188 kB / 433.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.2942, allocations: 15.45 kB / 433.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2942, allocations: 13.38 kB / 433.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.2954, allocations: 0.5067 MB / 433.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.2968, allocations: 1.004 MB / 435 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.2982, allocations: 481.9 kB / 435.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005769/0.2988, allocations: 234.2 kB / 435.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.2988, allocations: 11.38 kB / 435.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.2989, allocations: 42.67 kB / 435.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.255e-06/0.2989, allocations: 4 kB / 435.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04046/0.3393, allocations: 5.715 MB / 441.4 MB, free: 9.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/0.3394, allocations: 147.3 kB / 441.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.3396, allocations: 203.8 kB / 441.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-05/0.3397, allocations: 36.17 kB / 441.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.3398, allocations: 142.1 kB / 441.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.3399, allocations: 204.1 kB / 442.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.3402, allocations: 110 kB / 442.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.796e-05/0.3403, allocations: 344.2 kB / 442.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.3419, allocations: 0.6136 MB / 443.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.3435, allocations: 0.7971 MB / 444 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002813/0.3463, allocations: 1.245 MB / 445.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3463, allocations: 1.156 kB / 445.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003371/0.3497, allocations: 1.404 MB / 446.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3497, allocations: 8.281 kB / 446.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3497, allocations: 5.938 kB / 446.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/0.3497, allocations: 8.844 kB / 446.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.3511, allocations: 208.7 kB / 446.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.3511, allocations: 14.94 kB / 446.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009577/0.3521, allocations: 105.8 kB / 447 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.3522, allocations: 27.23 kB / 447 MB, free: 6.035 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.0002889/0.3525, allocations: 179.8 kB / 447.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003048/0.3528, allocations: 154.7 kB / 447.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.3529, allocations: 63.2 kB / 447.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3529, allocations: 8.922 kB / 447.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.3529, allocations: 1.031 kB / 447.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3529, allocations: 13.92 kB / 447.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004433/0.3574, allocations: 2.168 MB / 449.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/0.3574, allocations: 12.17 kB / 449.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.3581, allocations: 184.2 kB / 449.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.3582, allocations: 14.31 kB / 449.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.783e-05/0.3582, allocations: 27.16 kB / 449.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.435e-05/0.3582, allocations: 21.53 kB / 449.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/0.3582, allocations: 20.08 kB / 449.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.361, allocations: 1.548 MB / 451.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.3612, allocations: 175.7 kB / 451.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.909e-05/0.3613, allocations: 29.02 kB / 451.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005587/0.3619, allocations: 75.09 kB / 451.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.3621, allocations: 95.42 kB / 451.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.3621, allocations: 30.42 kB / 451.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000115/0.3622, allocations: 141.4 kB / 451.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3622, allocations: 3.938 kB / 452 MB, free: 2.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007382/0.363, allocations: 130.2 kB / 452.1 MB, free: 2.824 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.003095/0.3661, allocations: 2.123 MB / 454.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.3686, allocations: 1.034 MB / 455.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.3686, allocations: 1.188 kB / 455.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009157/0.3695, allocations: 340.2 kB / 455.6 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009402/0.3705, allocations: 136.5 kB / 455.7 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.3844, allocations: 6.774 MB / 462.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.3849, allocations: 0.8135 MB / 463.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005603/0.3854, allocations: 102.1 kB / 463.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/0.3858, allocations: 111.8 kB / 463.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3858, allocations: 0 / 463.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04289/0.4287, allocations: 11.28 MB / 474.8 MB, free: 1.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.251/9.68, allocations: 5.453 kB / 474.8 MB, free: 1.191 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 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.184987626038492] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.760435795411468 9.788100523 9.669154885 Calling exit ...