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.001856/0.001856, 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.002315/0.002315, allocations: 211.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.615/1.615, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.001983/0.001983, allocations: 68.53 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3025, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005146/0.3076, allocations: 2.361 MB / 434.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.3097, allocations: 0.8222 MB / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.3099, allocations: 7.938 kB / 435.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003657/0.3103, allocations: 43.58 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.3106, allocations: 71.55 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.3112, allocations: 167.5 kB / 435.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005744/0.3118, allocations: 383.5 kB / 435.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.312, allocations: 67.8 kB / 435.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.3124, allocations: 171.4 kB / 436 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.3127, allocations: 179.3 kB / 436.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.039e-05/0.3128, allocations: 32 kB / 436.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.022e-05/0.3129, allocations: 36 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.313, allocations: 91.72 kB / 436.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.3131, allocations: 143.2 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.3136, allocations: 327.5 kB / 436.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3137, allocations: 0 / 436.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3137, allocations: 0 / 436.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3137, allocations: 0 / 436.8 MB, free: 2.039 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001338/0.315, allocations: 0.5444 MB / 437.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3151, allocations: 12.03 kB / 437.3 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.522e-05/0.3151, allocations: 70.72 kB / 437.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.688e-05/0.3152, allocations: 44.75 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.3157, allocations: 206.5 kB / 437.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003579/0.3161, allocations: 347.8 kB / 438 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.481e-05/0.3161, allocations: 40.31 kB / 438 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.3173, allocations: 0.5387 MB / 438.6 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.3173, allocations: 8 kB / 438.6 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.3174, allocations: 8 kB / 438.6 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.3174, allocations: 8 kB / 438.6 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3187, allocations: 0.5074 MB / 439.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.3205, allocations: 0.9528 MB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.3221, allocations: 482.5 kB / 440.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.3227, allocations: 239.3 kB / 440.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-05/0.3228, allocations: 7.984 kB / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.3228, allocations: 42.5 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.485e-06/0.3228, allocations: 4 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03865/0.3615, allocations: 5.72 MB / 446.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.3616, allocations: 153 kB / 446.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.3619, allocations: 196 kB / 446.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.761e-05/0.362, allocations: 37.7 kB / 446.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3622, allocations: 141.8 kB / 447 MB, free: 7.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.3624, allocations: 202.3 kB / 447.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/0.3627, allocations: 114.6 kB / 447.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3629, allocations: 342.8 kB / 447.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/0.3646, allocations: 0.6149 MB / 448.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.3663, allocations: 0.7963 MB / 449.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/0.3694, allocations: 1.251 MB / 450.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.3695, allocations: 3.938 kB / 450.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00366/0.3731, allocations: 1.394 MB / 451.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.363e-05/0.3732, allocations: 8 kB / 451.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.3732, allocations: 4.047 kB / 451.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.747e-05/0.3732, allocations: 15.98 kB / 451.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.3746, allocations: 211.6 kB / 452 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.96e-05/0.3747, allocations: 11.94 kB / 452 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3757, allocations: 111.8 kB / 452.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.16e-05/0.3758, allocations: 32 kB / 452.1 MB, free: 2.16 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.0003973/0.3762, allocations: 177.6 kB / 452.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/0.3766, allocations: 149.4 kB / 452.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.3767, allocations: 71.23 kB / 452.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.3767, allocations: 8 kB / 452.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.3768, allocations: 0 / 452.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3768, allocations: 11.92 kB / 452.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.3819, allocations: 2.132 MB / 454.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.3819, allocations: 8 kB / 454.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008175/0.3827, allocations: 183.7 kB / 454.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.068e-05/0.3827, allocations: 16 kB / 454.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.432e-05/0.3828, allocations: 24 kB / 454.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.81e-05/0.3828, allocations: 24.27 kB / 454.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.765e-05/0.3828, allocations: 16.12 kB / 454.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003339/0.3862, allocations: 1.557 MB / 456.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.3864, allocations: 83.7 kB / 456.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3865, allocations: 36.05 kB / 456.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/0.3872, allocations: 71.92 kB / 456.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002892/0.3874, allocations: 95.64 kB / 456.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.3875, allocations: 39.94 kB / 456.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.3877, allocations: 143.5 kB / 456.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3877, allocations: 0 / 456.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007416/0.3885, allocations: 124 kB / 457.1 MB, free: 12.87 MB / 366.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.003702/0.3922, allocations: 2.125 MB / 459.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.3951, allocations: 1.023 MB / 460.2 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.3951, allocations: 4 kB / 460.2 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.3962, allocations: 334 kB / 460.5 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.3972, allocations: 134 kB / 460.7 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.4114, allocations: 6.784 MB / 467.5 MB, free: 1.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005414/0.412, allocations: 0.8167 MB / 468.3 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005483/0.4125, allocations: 91.31 kB / 468.4 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004084/0.4129, allocations: 119.4 kB / 468.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4129, allocations: 0 / 468.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0518/0.4647, allocations: 11.86 MB / 480.3 MB, free: 5.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.501/9.965, allocations: 7.625 kB / 480.4 MB, free: 5 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 & /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.552262930199504] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 10.040964256040752 10.0574798 9.740126106 Calling exit ...