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.00208/0.00208, allocations: 106.5 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.001579/0.001579, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.587/1.587, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.2465/0.2465, allocations: 46.93 MB / 361.6 MB, free: 4.203 MB / 286.1 MB " [Timeout remaining time 179] 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.002435/0.002435, allocations: 75.88 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3783, allocations: 66.07 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.006306/0.3846, allocations: 2.395 MB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.3874, allocations: 0.9151 MB / 0.5647 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.3877, allocations: 7.938 kB / 0.5647 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004675/0.3882, allocations: 55.5 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004345/0.3886, allocations: 79.39 kB / 0.5649 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006611/0.3893, allocations: 143.6 kB / 0.565 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007681/0.39, allocations: 363.2 kB / 0.5653 GB, free: 396 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002879/0.3903, allocations: 55.11 kB / 0.5654 GB, free: 336 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005718/0.3909, allocations: 167.5 kB / 0.5656 GB, free: 168 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005033/0.3914, allocations: 163.4 kB / 0.5657 GB, free: 4 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.3915, allocations: 28.05 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003539/0.3919, allocations: 91.88 kB / 0.5658 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.3921, allocations: 75.8 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.3923, allocations: 135.4 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008911/0.3932, allocations: 390.5 kB / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3932, allocations: 0 / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3932, allocations: 0 / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.3933, allocations: 0 / 0.5664 GB, free: 15.3 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.001484/0.3947, allocations: 0.5167 MB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.3948, allocations: 8.031 kB / 0.5669 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.3949, allocations: 58.73 kB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.3952, allocations: 36.78 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/0.3959, allocations: 194.8 kB / 0.5672 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.3959, allocations: 16.88 kB / 0.5672 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.385e-05/0.396, allocations: 28.38 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008466/0.3968, allocations: 280 kB / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.3969, allocations: 3.953 kB / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.3969, allocations: 8 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3969, allocations: 4 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008142/0.3977, allocations: 233.9 kB / 0.5677 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.3999, allocations: 0.6966 MB / 0.5684 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009175/0.4009, allocations: 230.9 kB / 0.5686 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004048/0.4013, allocations: 121.2 kB / 0.5688 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.432e-05/0.4013, allocations: 11.94 kB / 0.5688 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.4014, allocations: 38.5 kB / 0.5688 GB, free: 12.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 3.236e-06/0.4014, allocations: 0 / 0.5688 GB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.004599/0.406, allocations: 1.192 MB / 0.57 GB, free: 11.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.406, allocations: 55.41 kB / 0.57 GB, free: 11.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004568/0.4065, allocations: 207.8 kB / 0.5702 GB, free: 11.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.486e-05/0.4065, allocations: 37.7 kB / 0.5703 GB, free: 11.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.4067, allocations: 140.7 kB / 0.5704 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.4069, allocations: 127 kB / 0.5705 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.407, allocations: 61.69 kB / 0.5706 GB, free: 10.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003766/0.4074, allocations: 338.8 kB / 0.5709 GB, free: 10.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.4078, allocations: 120 kB / 0.571 GB, free: 10.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/0.4083, allocations: 160.4 kB / 0.5712 GB, free: 10.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.409, allocations: 243.9 kB / 0.5714 GB, free: 9.918 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.409, allocations: 4 kB / 0.5714 GB, free: 9.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001369/0.4103, allocations: 422 kB / 0.5718 GB, free: 9.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.4104, allocations: 14.44 kB / 0.5718 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.4104, allocations: 0 / 0.5718 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000732/0.4111, allocations: 196.8 kB / 0.572 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.4114, allocations: 55.89 kB / 0.5721 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.4127, allocations: 0.7242 MB / 0.5728 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/0.4131, allocations: 35.95 kB / 0.5728 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.4131, allocations: 16.06 kB / 0.5728 GB, free: 8.43 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.0002808/0.4134, allocations: 151 kB / 0.573 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4135, allocations: 23.86 kB / 0.573 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.4137, allocations: 34.66 kB / 0.573 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.4137, allocations: 4 kB / 0.573 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.4137, allocations: 0 / 0.573 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.4137, allocations: 3.984 kB / 0.573 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.4165, allocations: 0.9159 MB / 0.5739 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4165, allocations: 0 / 0.5739 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.4168, allocations: 51.92 kB / 0.574 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005804/0.4174, allocations: 176.7 kB / 0.5741 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.455e-05/0.4174, allocations: 11.98 kB / 0.5741 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.4185, allocations: 0.6889 MB / 0.5748 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.4185, allocations: 4.031 kB / 0.5748 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.4198, allocations: 0.5997 MB / 0.5754 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.42, allocations: 59.73 kB / 0.5755 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.998e-05/0.4201, allocations: 11.98 kB / 0.5755 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.4205, allocations: 40.02 kB / 0.5755 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.4206, allocations: 47.91 kB / 0.5756 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.4207, allocations: 11.98 kB / 0.5756 GB, free: 5.488 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002/0.4209, allocations: 156.2 kB / 0.5757 GB, free: 5.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4209, allocations: 0 / 0.5757 GB, free: 5.336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004281/0.4213, allocations: 75.94 kB / 0.5758 GB, free: 5.262 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.003003/0.4243, allocations: 1.376 MB / 0.5771 GB, free: 3.965 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009286/0.4252, allocations: 296 kB / 0.5774 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4253, allocations: 0 / 0.5774 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003982/0.4256, allocations: 151.8 kB / 0.5776 GB, free: 3.527 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.4262, allocations: 53.08 kB / 0.5776 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.4321, allocations: 3.076 MB / 0.5806 GB, free: 304 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.4326, allocations: 0.7602 MB / 0.5814 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.4328, allocations: 26.28 kB / 0.5814 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.4329, allocations: 75.41 kB / 0.5815 GB, free: 15.41 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4329, allocations: 0 / 0.5815 GB, free: 15.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04575/0.4787, allocations: 8.213 MB / 0.5895 GB, free: 7.238 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.14, allocations: 13.86 kB / 0.5895 GB, free: 7.23 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.455324829090387] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 13.302699643187225 13.320396008 12.923347587 Calling exit ...