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.001728/0.001728, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002221/0.002221, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.566/1.566, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.2382/0.2382, allocations: 46.92 MB / 361.6 MB, free: 4.215 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.002388/0.002388, allocations: 79.86 kB / 0.497 GB, free: 7.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3972, allocations: 66.09 MB / 0.5615 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004273/0.4014, allocations: 2.384 MB / 0.5638 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.4032, allocations: 0.919 MB / 0.5647 GB, free: 1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.4034, allocations: 4 kB / 0.5647 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.4038, allocations: 55.5 kB / 0.5648 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002517/0.404, allocations: 71.41 kB / 0.5648 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.4045, allocations: 163.5 kB / 0.565 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.405, allocations: 347.3 kB / 0.5653 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.4052, allocations: 71.03 kB / 0.5654 GB, free: 304 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.4055, allocations: 159.5 kB / 0.5656 GB, free: 144 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.4058, allocations: 163.4 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/0.4059, allocations: 28 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002101/0.4061, allocations: 83.97 kB / 0.5658 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.4062, allocations: 75.81 kB / 0.5659 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.4064, allocations: 139.3 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006331/0.407, allocations: 394.5 kB / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.407, allocations: 0 / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.407, allocations: 0 / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.407, allocations: 0 / 0.5664 GB, free: 15.27 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.0011/0.4081, allocations: 0.5129 MB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4082, allocations: 12.03 kB / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.299e-05/0.4083, allocations: 58.72 kB / 0.567 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.4085, allocations: 36.78 kB / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.4089, allocations: 198.8 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.4089, allocations: 16.88 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.446e-05/0.409, allocations: 28.36 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000583/0.4096, allocations: 268.1 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.4096, allocations: 7.938 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.4096, allocations: 12 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.4096, allocations: 8 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005398/0.4102, allocations: 233.9 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.4116, allocations: 0.6888 MB / 0.5684 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.4122, allocations: 239.3 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.4125, allocations: 121.2 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.4125, allocations: 4 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.4126, allocations: 34.5 kB / 0.5688 GB, free: 12.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.144e-06/0.4126, allocations: 4 kB / 0.5688 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.00332/0.4159, allocations: 1.2 MB / 0.57 GB, free: 11.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.4159, allocations: 51.41 kB / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.4162, allocations: 215.8 kB / 0.5702 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.4163, allocations: 33.7 kB / 0.5703 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.4164, allocations: 140.8 kB / 0.5704 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.4165, allocations: 119 kB / 0.5705 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.4166, allocations: 73.62 kB / 0.5706 GB, free: 10.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.4168, allocations: 334.8 kB / 0.5709 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.417, allocations: 119.9 kB / 0.571 GB, free: 10.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.4173, allocations: 160.5 kB / 0.5712 GB, free: 10.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004701/0.4178, allocations: 239.9 kB / 0.5714 GB, free: 9.891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4178, allocations: 0 / 0.5714 GB, free: 9.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009423/0.4188, allocations: 430 kB / 0.5718 GB, free: 9.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.4188, allocations: 10.44 kB / 0.5718 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4188, allocations: 4 kB / 0.5718 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000557/0.4194, allocations: 192.7 kB / 0.572 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.4196, allocations: 55.91 kB / 0.572 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008551/0.4204, allocations: 0.7359 MB / 0.5728 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.4207, allocations: 27.97 kB / 0.5728 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.4207, allocations: 15.98 kB / 0.5728 GB, free: 8.398 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.0001839/0.4209, allocations: 155.1 kB / 0.573 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.75e-05/0.421, allocations: 23.86 kB / 0.573 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.707e-05/0.4211, allocations: 38.64 kB / 0.573 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4211, allocations: 4 kB / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4211, allocations: 0 / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4211, allocations: 0 / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.4229, allocations: 0.908 MB / 0.5739 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4229, allocations: 4.062 kB / 0.5739 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.4231, allocations: 43.97 kB / 0.574 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004225/0.4235, allocations: 172.7 kB / 0.5741 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.4236, allocations: 16.02 kB / 0.5741 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007258/0.4243, allocations: 0.6927 MB / 0.5748 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4243, allocations: 0 / 0.5748 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.4255, allocations: 0.6115 MB / 0.5754 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.4256, allocations: 51.8 kB / 0.5755 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.868e-05/0.4257, allocations: 12 kB / 0.5755 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.426, allocations: 35.95 kB / 0.5755 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.4261, allocations: 43.91 kB / 0.5755 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.4261, allocations: 11.98 kB / 0.5756 GB, free: 5.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.4263, allocations: 164.2 kB / 0.5757 GB, free: 5.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4263, allocations: 4 kB / 0.5757 GB, free: 5.305 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.4267, allocations: 67.94 kB / 0.5758 GB, free: 5.238 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.002841/0.4296, allocations: 1.392 MB / 0.5771 GB, free: 3.934 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008289/0.4304, allocations: 292.1 kB / 0.5774 GB, free: 3.648 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4304, allocations: 0 / 0.5774 GB, free: 3.648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.4307, allocations: 159.7 kB / 0.5776 GB, free: 3.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.4312, allocations: 43.78 kB / 0.5776 GB, free: 3.449 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.4367, allocations: 3.071 MB / 0.5806 GB, free: 276 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004683/0.4371, allocations: 0.7602 MB / 0.5814 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.4373, allocations: 26.28 kB / 0.5814 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.4375, allocations: 75.41 kB / 0.5814 GB, free: 15.38 MB / 430.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4375, allocations: 0 / 0.5814 GB, free: 15.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04216/0.4796, allocations: 8.222 MB / 0.5895 GB, free: 7.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.11, allocations: 3.859 kB / 0.5895 GB, free: 7.203 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: 16.251943317241967] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia4.phi', 'inertia4.w', 'bearingFriction1.mode', 'bearingFriction1.startBackward', 'bearingFriction1.startForward'] 13.277206954080611 13.307775281 12.89489945 Calling exit ...