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.001755/0.001755, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001491/0.001491, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.52/1.52, 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.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.002039/0.002039, allocations: 71.89 kB / 378.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3285, allocations: 53.37 MB / 431.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003822/0.3323, allocations: 2.394 MB / 434.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.3339, allocations: 0.8533 MB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3341, allocations: 7.938 kB / 435.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002925/0.3344, allocations: 51.58 kB / 435.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.3346, allocations: 67.48 kB / 435.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005033/0.3351, allocations: 179.3 kB / 435.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.3356, allocations: 379.5 kB / 435.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.3357, allocations: 82.45 kB / 435.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.3361, allocations: 175.4 kB / 436.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.3363, allocations: 175.3 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.3364, allocations: 36 kB / 436.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.3364, allocations: 32 kB / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.3365, allocations: 103.7 kB / 436.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.3367, allocations: 147.2 kB / 436.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.3371, allocations: 338.6 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.3371, allocations: 0 / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3371, allocations: 0 / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3371, allocations: 0 / 436.9 MB, free: 1.938 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.001179/0.3383, allocations: 0.5444 MB / 437.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3383, allocations: 11.97 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.842e-05/0.3384, allocations: 74.66 kB / 437.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.166e-05/0.3385, allocations: 40.7 kB / 437.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.3389, allocations: 230.4 kB / 437.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.3393, allocations: 343.9 kB / 438.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.365e-05/0.3393, allocations: 32.38 kB / 438.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3405, allocations: 0.5621 MB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3406, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3406, allocations: 12 kB / 438.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3406, allocations: 8 kB / 438.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3419, allocations: 0.5113 MB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.3435, allocations: 0.9491 MB / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3451, allocations: 478.5 kB / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.3457, allocations: 239.4 kB / 440.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.406e-05/0.3457, allocations: 8 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.3457, allocations: 42.5 kB / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.3457, allocations: 0 / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03748/0.3832, allocations: 5.746 MB / 446.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/0.3834, allocations: 149 kB / 446.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.3836, allocations: 200.3 kB / 447 MB, free: 7.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-05/0.3837, allocations: 37.7 kB / 447.1 MB, free: 7.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.3839, allocations: 141.8 kB / 447.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.3841, allocations: 198.3 kB / 447.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/0.3844, allocations: 114.6 kB / 447.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3845, allocations: 342.8 kB / 447.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.3861, allocations: 0.6149 MB / 448.5 MB, free: 6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/0.3879, allocations: 0.8002 MB / 449.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003064/0.391, allocations: 1.251 MB / 450.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.391, allocations: 4 kB / 450.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003504/0.3945, allocations: 1.39 MB / 451.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.3945, allocations: 8 kB / 451.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.3945, allocations: 8.297 kB / 451.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/0.3945, allocations: 16 kB / 451.9 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.3959, allocations: 211.6 kB / 452.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.3959, allocations: 11.94 kB / 452.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009647/0.3969, allocations: 95.8 kB / 452.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.99e-05/0.397, allocations: 35.98 kB / 452.3 MB, free: 2.016 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.0003483/0.3973, allocations: 185.6 kB / 452.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/0.3977, allocations: 157.3 kB / 452.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.3979, allocations: 59.31 kB / 452.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.3979, allocations: 8 kB / 452.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.398, allocations: 0 / 452.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.398, allocations: 7.984 kB / 452.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007474/0.4054, allocations: 2.14 MB / 454.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-05/0.4055, allocations: 8 kB / 454.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.4067, allocations: 183.7 kB / 455 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.421e-05/0.4067, allocations: 15.94 kB / 455 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.14e-05/0.4068, allocations: 27.94 kB / 455.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.461e-05/0.4068, allocations: 15.94 kB / 455.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.048e-05/0.4068, allocations: 19.92 kB / 455.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/0.4119, allocations: 1.549 MB / 456.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003874/0.4123, allocations: 87.64 kB / 456.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.4124, allocations: 31.98 kB / 456.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009808/0.4134, allocations: 79.97 kB / 456.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003235/0.4137, allocations: 91.64 kB / 456.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/0.4138, allocations: 43.94 kB / 457 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002276/0.414, allocations: 137.2 kB / 457.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.414, allocations: 0 / 457.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001181/0.4152, allocations: 127.9 kB / 457.2 MB, free: 12.73 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.0055/0.4207, allocations: 2.122 MB / 459.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004445/0.4251, allocations: 1.027 MB / 460.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.689e-05/0.4252, allocations: 0 / 460.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.4267, allocations: 338.2 kB / 460.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.4283, allocations: 148.3 kB / 460.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/0.4494, allocations: 6.773 MB / 467.6 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007373/0.4502, allocations: 0.8128 MB / 468.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008405/0.451, allocations: 95.31 kB / 468.5 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005604/0.4516, allocations: 115.4 kB / 468.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4516, allocations: 0 / 468.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05074/0.5023, allocations: 11.95 MB / 480.6 MB, free: 4.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.277/9.78, allocations: 3.984 kB / 480.6 MB, free: 4.773 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.247145163826644] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.861260345205665 9.891295063 9.548317087 Calling exit ...