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.001803/0.001803, allocations: 109.3 kB / 20.22 MB, free: 1.785 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.00224/0.00224, allocations: 215.9 kB / 23.48 MB, free: 4.754 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.493/1.493, allocations: 230.2 MB / 256.8 MB, free: 8.578 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.2404/0.2404, allocations: 46.88 MB / 360 MB, free: 4.734 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.002442/0.002442, allocations: 79.86 kB / 0.4951 GB, free: 8.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3394, allocations: 65.99 MB / 0.5595 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004672/0.3441, allocations: 2.387 MB / 0.5618 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.346, allocations: 0.9112 MB / 0.5627 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.3462, allocations: 7.938 kB / 0.5627 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.3466, allocations: 51.5 kB / 0.5628 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/0.3469, allocations: 83.39 kB / 0.5629 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.3474, allocations: 147.6 kB / 0.563 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005414/0.3479, allocations: 355.2 kB / 0.5634 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.3481, allocations: 62.77 kB / 0.5634 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003441/0.3484, allocations: 159.5 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002955/0.3487, allocations: 159.4 kB / 0.5637 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.947e-05/0.3488, allocations: 28 kB / 0.5637 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.349, allocations: 87.97 kB / 0.5638 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.3492, allocations: 79.8 kB / 0.5639 GB, free: 496 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.3494, allocations: 143.2 kB / 0.564 GB, free: 352 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006515/0.35, allocations: 382.7 kB / 0.5644 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.35, allocations: 0 / 0.5644 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.127e-06/0.35, allocations: 3.984 kB / 0.5644 GB, free: 15.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.35, allocations: 0 / 0.5644 GB, free: 15.96 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.001157/0.3512, allocations: 0.5843 MB / 0.565 GB, free: 15.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.3513, allocations: 12.02 kB / 0.565 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.768e-05/0.3513, allocations: 58.73 kB / 0.565 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3515, allocations: 36.78 kB / 0.5651 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.3519, allocations: 256.5 kB / 0.5653 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/0.352, allocations: 20.94 kB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/0.352, allocations: 24.38 kB / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.3526, allocations: 272.9 kB / 0.5656 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3526, allocations: 3.953 kB / 0.5656 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3527, allocations: 8 kB / 0.5656 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.3527, allocations: 4 kB / 0.5656 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005692/0.3533, allocations: 238.1 kB / 0.5659 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.3548, allocations: 0.733 MB / 0.5666 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.3554, allocations: 238.3 kB / 0.5668 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002812/0.3557, allocations: 124.8 kB / 0.5669 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.3557, allocations: 4 kB / 0.5669 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.3558, allocations: 38.56 kB / 0.567 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.144e-06/0.3558, allocations: 0 / 0.567 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003555/0.3593, allocations: 1.412 MB / 0.5684 GB, free: 11.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.3594, allocations: 63.34 kB / 0.5684 GB, free: 11.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3597, allocations: 211.8 kB / 0.5686 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.3597, allocations: 29.7 kB / 0.5686 GB, free: 11.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3598, allocations: 148.8 kB / 0.5688 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.36, allocations: 115 kB / 0.5689 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.3601, allocations: 65.69 kB / 0.569 GB, free: 10.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3603, allocations: 338.8 kB / 0.5693 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.3606, allocations: 124 kB / 0.5694 GB, free: 10.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.3609, allocations: 155.4 kB / 0.5695 GB, free: 10.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.3613, allocations: 236 kB / 0.5698 GB, free: 10.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.3613, allocations: 0 / 0.5698 GB, free: 10.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009835/0.3623, allocations: 434 kB / 0.5702 GB, free: 9.672 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.3623, allocations: 7.938 kB / 0.5702 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3624, allocations: 0 / 0.5702 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000546/0.3629, allocations: 196.8 kB / 0.5704 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.3632, allocations: 55.91 kB / 0.5704 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009092/0.3641, allocations: 0.7278 MB / 0.5711 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.3644, allocations: 39.98 kB / 0.5712 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.3644, allocations: 8 kB / 0.5712 GB, free: 8.617 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.000227/0.3646, allocations: 158.4 kB / 0.5713 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.459e-05/0.3647, allocations: 23.86 kB / 0.5714 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.3648, allocations: 34.66 kB / 0.5714 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.3648, allocations: 4 kB / 0.5714 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.3648, allocations: 3.984 kB / 0.5714 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3648, allocations: 0 / 0.5714 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.3667, allocations: 0.9363 MB / 0.5723 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3667, allocations: 0 / 0.5723 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3669, allocations: 47.91 kB / 0.5724 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000441/0.3674, allocations: 176.7 kB / 0.5725 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.3674, allocations: 8 kB / 0.5725 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008051/0.3682, allocations: 0.6966 MB / 0.5732 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3682, allocations: 0 / 0.5732 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3695, allocations: 0.6155 MB / 0.5738 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.3697, allocations: 132.9 kB / 0.574 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.3698, allocations: 12 kB / 0.574 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.37, allocations: 31.95 kB / 0.574 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3702, allocations: 51.98 kB / 0.574 GB, free: 5.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.3702, allocations: 12 kB / 0.5741 GB, free: 5.543 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3704, allocations: 153.5 kB / 0.5742 GB, free: 5.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3704, allocations: 0 / 0.5742 GB, free: 5.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004212/0.3708, allocations: 75.88 kB / 0.5743 GB, free: 5.32 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.002857/0.3737, allocations: 1.378 MB / 0.5756 GB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009324/0.3746, allocations: 287.6 kB / 0.5759 GB, free: 3.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3746, allocations: 3.938 kB / 0.5759 GB, free: 3.746 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.375, allocations: 156.2 kB / 0.576 GB, free: 3.594 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.3755, allocations: 50.5 kB / 0.5761 GB, free: 3.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005889/0.3813, allocations: 3.079 MB / 0.5791 GB, free: 364 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.3818, allocations: 0.7563 MB / 0.5798 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.382, allocations: 34.28 kB / 0.5799 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3821, allocations: 71.41 kB / 0.5799 GB, free: 15.47 MB / 430.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3821, allocations: 0 / 0.5799 GB, free: 15.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.4196, allocations: 7.994 MB / 0.5877 GB, free: 7.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.08, allocations: 3.438 kB / 0.5878 GB, free: 7.523 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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: 16.147514745010994] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 13.228867002064362 13.244433907 12.891007318 Calling exit ...