Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001779/0.001779, allocations: 113.2 kB / 20.22 MB, free: 1.793 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.002117/0.002117, allocations: 214.6 kB / 23.48 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 230.2 MB / 256.8 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.238/0.238, allocations: 46.88 MB / 360 MB, free: 4.695 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002441/0.002441, allocations: 83.86 kB / 0.4951 GB, free: 8.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3126, allocations: 65.98 MB / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004026/0.3166, allocations: 2.392 MB / 0.5618 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.3183, allocations: 0.919 MB / 0.5627 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.3185, allocations: 4 kB / 0.5627 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.3188, allocations: 51.52 kB / 0.5628 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.3191, allocations: 75.41 kB / 0.5629 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004495/0.3195, allocations: 151.6 kB / 0.563 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/0.32, allocations: 355.3 kB / 0.5633 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.3202, allocations: 62.77 kB / 0.5634 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.3205, allocations: 163.4 kB / 0.5636 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.3208, allocations: 167.4 kB / 0.5637 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.52e-05/0.3208, allocations: 32 kB / 0.5637 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.321, allocations: 83.97 kB / 0.5638 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3212, allocations: 71.81 kB / 0.5639 GB, free: 464 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.3213, allocations: 143.2 kB / 0.564 GB, free: 320 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005563/0.3219, allocations: 382.6 kB / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3219, allocations: 0 / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3219, allocations: 0 / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.3219, allocations: 4 kB / 0.5644 GB, free: 15.93 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001058/0.323, allocations: 0.5882 MB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.323, allocations: 12.03 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.3231, allocations: 54.73 kB / 0.565 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.3233, allocations: 36.78 kB / 0.5651 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.3237, allocations: 260.6 kB / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.3237, allocations: 20.94 kB / 0.5653 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.3238, allocations: 28.38 kB / 0.5654 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.3244, allocations: 264.9 kB / 0.5656 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.3244, allocations: 11.94 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.3244, allocations: 8 kB / 0.5656 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.3244, allocations: 8 kB / 0.5656 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005359/0.325, allocations: 230.1 kB / 0.5659 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.3265, allocations: 0.733 MB / 0.5666 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005545/0.327, allocations: 238.3 kB / 0.5668 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.3273, allocations: 124.8 kB / 0.5669 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.3273, allocations: 4 kB / 0.5669 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.3273, allocations: 30.56 kB / 0.567 GB, free: 13.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.3273, allocations: 4 kB / 0.567 GB, free: 13.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003288/0.3306, allocations: 1.416 MB / 0.5684 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.3307, allocations: 59.34 kB / 0.5684 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.3309, allocations: 203.8 kB / 0.5686 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.331, allocations: 37.7 kB / 0.5686 GB, free: 11.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3311, allocations: 136.8 kB / 0.5688 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3312, allocations: 119 kB / 0.5689 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3313, allocations: 73.62 kB / 0.569 GB, free: 10.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3315, allocations: 338.8 kB / 0.5693 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.3317, allocations: 116 kB / 0.5694 GB, free: 10.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.3321, allocations: 159.4 kB / 0.5695 GB, free: 10.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.3325, allocations: 239.9 kB / 0.5698 GB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3325, allocations: 4 kB / 0.5698 GB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009247/0.3335, allocations: 422 kB / 0.5702 GB, free: 9.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3335, allocations: 9.969 kB / 0.5702 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3335, allocations: 4 kB / 0.5702 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005038/0.334, allocations: 196.8 kB / 0.5704 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.3342, allocations: 55.91 kB / 0.5704 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008505/0.3351, allocations: 0.7281 MB / 0.5711 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.3354, allocations: 36.02 kB / 0.5712 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3354, allocations: 19.98 kB / 0.5712 GB, free: 8.578 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001969/0.3356, allocations: 150.4 kB / 0.5713 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.399e-05/0.3357, allocations: 23.86 kB / 0.5714 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.22e-05/0.3358, allocations: 34.64 kB / 0.5714 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.515e-06/0.3358, allocations: 4 kB / 0.5714 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3358, allocations: 0 / 0.5714 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3358, allocations: 0 / 0.5714 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.3376, allocations: 0.9363 MB / 0.5723 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3376, allocations: 0 / 0.5723 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.3378, allocations: 55.91 kB / 0.5724 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004023/0.3382, allocations: 172.8 kB / 0.5725 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.3383, allocations: 7.984 kB / 0.5725 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007504/0.339, allocations: 0.7005 MB / 0.5732 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.339, allocations: 0 / 0.5732 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.3403, allocations: 0.6116 MB / 0.5738 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.3405, allocations: 132.9 kB / 0.5739 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.896e-05/0.3405, allocations: 8 kB / 0.574 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.3408, allocations: 40.02 kB / 0.574 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3409, allocations: 43.92 kB / 0.574 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.341, allocations: 15.98 kB / 0.574 GB, free: 5.512 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.3411, allocations: 149.5 kB / 0.5742 GB, free: 5.367 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3411, allocations: 0 / 0.5742 GB, free: 5.367 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004068/0.3415, allocations: 79.88 kB / 0.5743 GB, free: 5.289 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002775/0.3443, allocations: 1.391 MB / 0.5756 GB, free: 3.992 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008236/0.3451, allocations: 279.6 kB / 0.5759 GB, free: 3.719 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3451, allocations: 3.938 kB / 0.5759 GB, free: 3.715 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.3455, allocations: 160.2 kB / 0.576 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.346, allocations: 43.61 kB / 0.5761 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005624/0.3516, allocations: 3.088 MB / 0.5791 GB, free: 328 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.3521, allocations: 0.7563 MB / 0.5798 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.3523, allocations: 34.25 kB / 0.5799 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.3524, allocations: 75.41 kB / 0.5799 GB, free: 15.43 MB / 430.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3524, allocations: 0 / 0.5799 GB, free: 15.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03676/0.3892, allocations: 7.981 MB / 0.5877 GB, free: 7.492 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.52, allocations: 10.72 kB / 0.5878 GB, free: 7.484 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.451581506989896] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 12.672251735115424 12.687686414 12.36267744 Calling exit ...