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.001466/0.001466, allocations: 117.3 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.00171/0.00171, 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.518/1.518, allocations: 230.5 MB / 254.7 MB, free: 15.22 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.001936/0.001936, allocations: 63.84 kB / 373.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1052, allocations: 53.32 MB / 426.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003808/0.109, allocations: 2.366 MB / 429.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.1105, allocations: 0.8494 MB / 430.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1106, allocations: 8 kB / 430.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.1109, allocations: 55.56 kB / 430.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1111, allocations: 59.5 kB / 430.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.1116, allocations: 182.5 kB / 430.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004277/0.112, allocations: 375.6 kB / 430.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.1122, allocations: 83.83 kB / 430.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.1125, allocations: 167.4 kB / 431 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.1127, allocations: 183.3 kB / 431.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.456e-05/0.1128, allocations: 39.94 kB / 431.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.1129, allocations: 36 kB / 431.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.113, allocations: 87.73 kB / 431.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.1131, allocations: 151.2 kB / 431.5 MB, free: 376 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.1135, allocations: 338.6 kB / 431.8 MB, free: 36 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1135, allocations: 4 kB / 431.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1135, allocations: 0 / 431.8 MB, free: 32 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1135, allocations: 3.938 kB / 431.8 MB, free: 28 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.1823/0.2959, allocations: 0.6161 MB / 432.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.2959, allocations: 10.55 kB / 432.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.769e-05/0.296, allocations: 71.48 kB / 432.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.2961, allocations: 45.36 kB / 432.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.2966, allocations: 274.2 kB / 432.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.2968, allocations: 134.5 kB / 433 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.2969, allocations: 31.38 kB / 433 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.2982, allocations: 0.5704 MB / 433.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.2982, allocations: 0 / 433.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.2982, allocations: 13.22 kB / 433.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.2982, allocations: 7.438 kB / 433.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2994, allocations: 0.506 MB / 434.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.3009, allocations: 1.019 MB / 435.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.3024, allocations: 477.2 kB / 435.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005758/0.303, allocations: 237.3 kB / 435.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.303, allocations: 7.547 kB / 435.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.303, allocations: 44.17 kB / 435.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/0.303, allocations: 0 / 435.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03905/0.3421, allocations: 5.724 MB / 441.6 MB, free: 9.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/0.3422, allocations: 148.5 kB / 441.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.3424, allocations: 198.8 kB / 441.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.301e-05/0.3425, allocations: 37.11 kB / 442 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.677e-05/0.3426, allocations: 145.8 kB / 442.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.3427, allocations: 198.3 kB / 442.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002813/0.343, allocations: 113.4 kB / 442.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.04e-05/0.3431, allocations: 344.5 kB / 442.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.3447, allocations: 0.6137 MB / 443.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.3464, allocations: 0.8011 MB / 444.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002962/0.3494, allocations: 1.254 MB / 445.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.3494, allocations: 2.062 kB / 445.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003649/0.353, allocations: 1.397 MB / 446.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.3531, allocations: 9.156 kB / 446.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.3531, allocations: 6.688 kB / 446.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/0.3531, allocations: 9.531 kB / 446.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.3546, allocations: 211.7 kB / 447 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.638e-05/0.3546, allocations: 14.56 kB / 447 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.3557, allocations: 107.3 kB / 447.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-05/0.3558, allocations: 26.92 kB / 447.2 MB, free: 6.055 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.0003582/0.3561, allocations: 178.5 kB / 447.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003465/0.3565, allocations: 160.7 kB / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.3566, allocations: 63.44 kB / 447.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3566, allocations: 6.875 kB / 447.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.3566, allocations: 3.953 kB / 447.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.3567, allocations: 8.844 kB / 447.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.3614, allocations: 2.17 MB / 449.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.3614, allocations: 9.625 kB / 449.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000762/0.3622, allocations: 185.4 kB / 450 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.007e-05/0.3622, allocations: 13.66 kB / 450 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.3623, allocations: 24.09 kB / 450 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.208e-05/0.3623, allocations: 25.42 kB / 450 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.246e-05/0.3623, allocations: 15.75 kB / 450 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.3654, allocations: 1.559 MB / 451.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.3657, allocations: 164.1 kB / 451.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.905e-05/0.3657, allocations: 33.7 kB / 451.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.3663, allocations: 76.03 kB / 451.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.3665, allocations: 93.73 kB / 451.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-05/0.3666, allocations: 30.25 kB / 452 MB, free: 2.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.3668, allocations: 145.3 kB / 452.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3668, allocations: 3.938 kB / 452.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007877/0.3675, allocations: 126.6 kB / 452.2 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.003359/0.3709, allocations: 2.126 MB / 454.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003026/0.3739, allocations: 1.03 MB / 455.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/0.3739, allocations: 1 kB / 455.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.375, allocations: 333.7 kB / 455.7 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.3761, allocations: 135.4 kB / 455.9 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.3911, allocations: 6.776 MB / 462.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.3917, allocations: 0.8138 MB / 463.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005716/0.3923, allocations: 96.89 kB / 463.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.3926, allocations: 117 kB / 463.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of SimCode: time 2.154e-06/0.3926, allocations: 0 / 463.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04257/0.4352, allocations: 11.36 MB / 475 MB, free: 1.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.064/9.499, allocations: 15.97 kB / 475 MB, free: 1.035 MB / 366.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: 11.955217001959682] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.576898195315152 9.602335386 9.483706592 Calling exit ...