Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001885/0.001885, allocations: 108.2 kB / 20.21 MB, free: 1.812 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.001871/0.001871, allocations: 220.3 kB / 23.48 MB, free: 5.254 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.535/1.535, allocations: 230.4 MB / 257 MB, free: 8.27 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.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.002145/0.002145, allocations: 67.89 kB / 377 MB, free: 3.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2702, allocations: 53.32 MB / 430.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004696/0.2749, allocations: 2.39 MB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.2767, allocations: 0.8455 MB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.2769, allocations: 7.938 kB / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003401/0.2772, allocations: 59.56 kB / 433.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.2774, allocations: 51.56 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.2779, allocations: 187.6 kB / 433.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.2784, allocations: 383.5 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.2785, allocations: 75.83 kB / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.2788, allocations: 163.5 kB / 434.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002724/0.2791, allocations: 187.2 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.003e-05/0.2792, allocations: 36 kB / 434.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.2792, allocations: 32 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.2793, allocations: 91.73 kB / 434.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.2795, allocations: 155.2 kB / 435 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.2799, allocations: 339 kB / 435.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2799, allocations: 0 / 435.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2799, allocations: 0 / 435.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2799, allocations: 0 / 435.3 MB, free: 2.297 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001186/0.2811, allocations: 0.6198 MB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.2811, allocations: 12.03 kB / 436 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.404e-05/0.2812, allocations: 70.72 kB / 436 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.2813, allocations: 44.7 kB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.2817, allocations: 280.3 kB / 436.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.2819, allocations: 138.3 kB / 436.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.282, allocations: 28.38 kB / 436.5 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.2831, allocations: 0.582 MB / 437.1 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.2832, allocations: 0 / 437.1 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.2832, allocations: 12 kB / 437.1 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2832, allocations: 4 kB / 437.1 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.2845, allocations: 0.5113 MB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.286, allocations: 1.006 MB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.2875, allocations: 478.5 kB / 439.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/0.2881, allocations: 243.4 kB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.2882, allocations: 12.14 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.2882, allocations: 42.48 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/0.2882, allocations: 0 / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03764/0.3258, allocations: 5.72 MB / 445.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.3259, allocations: 152.9 kB / 445.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.3262, allocations: 204.2 kB / 445.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.601e-05/0.3263, allocations: 41.7 kB / 445.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3264, allocations: 141.8 kB / 445.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.3266, allocations: 198.4 kB / 445.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002859/0.3269, allocations: 110.6 kB / 445.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.327, allocations: 342.8 kB / 446.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.3285, allocations: 0.6149 MB / 446.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.3302, allocations: 0.8002 MB / 447.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/0.3331, allocations: 1.251 MB / 448.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3331, allocations: 0 / 448.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003356/0.3364, allocations: 1.402 MB / 450.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.3365, allocations: 11.28 kB / 450.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3365, allocations: 4.375 kB / 450.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.3365, allocations: 12 kB / 450.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3378, allocations: 207.9 kB / 450.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/0.3378, allocations: 11.94 kB / 450.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009065/0.3387, allocations: 111.7 kB / 450.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.3388, allocations: 28 kB / 450.7 MB, free: 2.395 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.000322/0.3391, allocations: 181.6 kB / 450.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000309/0.3394, allocations: 153.3 kB / 451 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.3396, allocations: 67.3 kB / 451.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/0.3396, allocations: 8 kB / 451.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.3396, allocations: 0 / 451.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3397, allocations: 7.984 kB / 451.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004829/0.3445, allocations: 2.168 MB / 453.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.3445, allocations: 12.25 kB / 453.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000736/0.3452, allocations: 179.7 kB / 453.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.3453, allocations: 16 kB / 453.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.3453, allocations: 28 kB / 453.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.891e-05/0.3453, allocations: 19.92 kB / 453.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/0.3453, allocations: 19.88 kB / 453.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003094/0.3484, allocations: 1.549 MB / 455.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000238/0.3487, allocations: 164.8 kB / 455.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.645e-05/0.3488, allocations: 27.94 kB / 455.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005806/0.3493, allocations: 83.97 kB / 455.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.3495, allocations: 95.67 kB / 455.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.891e-05/0.3496, allocations: 32 kB / 455.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3497, allocations: 140.1 kB / 455.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3497, allocations: 0 / 455.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006604/0.3504, allocations: 127.9 kB / 455.8 MB, free: 12.97 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.003514/0.3539, allocations: 2.122 MB / 457.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.3566, allocations: 1.031 MB / 458.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3566, allocations: 0 / 458.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000931/0.3575, allocations: 330 kB / 459.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009086/0.3585, allocations: 154.1 kB / 459.4 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.3714, allocations: 6.791 MB / 466.2 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.3719, allocations: 0.8129 MB / 467 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004922/0.3724, allocations: 91.33 kB / 467.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003731/0.3728, allocations: 119.4 kB / 467.2 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3728, allocations: 0 / 467.2 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.4132, allocations: 11.53 MB / 478.7 MB, free: 5.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.832/9.245, allocations: 7.312 kB / 478.7 MB, free: 5.422 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.73088785377331] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.320954896975309 9.336189924 9.053058923 Calling exit ...