Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001755/0.001755, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002017/0.002017, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.474/1.474, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2504/0.2504, allocations: 46.93 MB / 361.6 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 79.88 kB / 0.497 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3688, allocations: 66.07 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004352/0.3731, allocations: 2.396 MB / 0.5638 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.375, allocations: 0.9151 MB / 0.5647 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.3752, allocations: 4 kB / 0.5647 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.3755, allocations: 55.5 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.3758, allocations: 79.41 kB / 0.5648 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004735/0.3763, allocations: 151.6 kB / 0.565 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004581/0.3767, allocations: 347.3 kB / 0.5653 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.3769, allocations: 67.08 kB / 0.5654 GB, free: 308 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/0.3773, allocations: 163.5 kB / 0.5655 GB, free: 144 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.3776, allocations: 167.5 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.3776, allocations: 35.94 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.3779, allocations: 83.98 kB / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.378, allocations: 71.81 kB / 0.5659 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.3781, allocations: 147.2 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005689/0.3787, allocations: 386.5 kB / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3787, allocations: 0 / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3787, allocations: 0 / 0.5664 GB, free: 15.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3787, 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.001062/0.3798, allocations: 0.5168 MB / 0.5669 GB, free: 14.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3798, allocations: 8.031 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.031e-05/0.3799, allocations: 8.688 kB / 0.5669 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.751e-05/0.3799, allocations: 58.73 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.3801, allocations: 32.78 kB / 0.567 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.3805, allocations: 202.8 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.3805, allocations: 20.88 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.316e-05/0.3806, allocations: 24.38 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.3812, allocations: 267.9 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3812, allocations: 3.953 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.3813, allocations: 8 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.3813, allocations: 4 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000549/0.3818, allocations: 233.9 kB / 0.5677 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3833, allocations: 0.7005 MB / 0.5684 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005843/0.3839, allocations: 225 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002671/0.3842, allocations: 132.5 kB / 0.5688 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.3842, allocations: 3.984 kB / 0.5688 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.3842, allocations: 46.48 kB / 0.5688 GB, free: 12.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.194e-06/0.3842, allocations: 0 / 0.5688 GB, free: 12.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003343/0.3876, allocations: 1.193 MB / 0.57 GB, free: 11.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3876, allocations: 55.41 kB / 0.57 GB, free: 11.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3879, allocations: 207.8 kB / 0.5702 GB, free: 11.13 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.3879, allocations: 41.69 kB / 0.5703 GB, free: 11.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3881, allocations: 140.9 kB / 0.5704 GB, free: 10.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3882, allocations: 115 kB / 0.5705 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.3883, allocations: 69.69 kB / 0.5706 GB, free: 10.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3885, allocations: 342.8 kB / 0.5709 GB, free: 10.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.3888, allocations: 115.9 kB / 0.571 GB, free: 10.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.3891, allocations: 160.5 kB / 0.5712 GB, free: 10.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.3896, allocations: 239.9 kB / 0.5714 GB, free: 9.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3896, allocations: 0 / 0.5714 GB, free: 9.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009677/0.3905, allocations: 422 kB / 0.5718 GB, free: 9.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.3906, allocations: 7.938 kB / 0.5718 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3906, allocations: 0 / 0.5718 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000506/0.3911, allocations: 196.8 kB / 0.572 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.3913, allocations: 55.84 kB / 0.572 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008656/0.3922, allocations: 0.7319 MB / 0.5728 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.3925, allocations: 44.05 kB / 0.5728 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.3925, allocations: 8 kB / 0.5728 GB, free: 8.395 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.0002192/0.3928, allocations: 151 kB / 0.5729 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.3928, allocations: 23.86 kB / 0.573 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.882e-05/0.3929, allocations: 38.64 kB / 0.573 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3929, allocations: 4 kB / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3929, allocations: 0 / 0.573 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3929, allocations: 7.984 kB / 0.573 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.3947, allocations: 0.9003 MB / 0.5739 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3947, allocations: 4 kB / 0.5739 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.395, allocations: 47.97 kB / 0.5739 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004176/0.3954, allocations: 176.7 kB / 0.5741 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.3954, allocations: 15.98 kB / 0.5741 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007614/0.3962, allocations: 0.6928 MB / 0.5748 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3962, allocations: 0 / 0.5748 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.3975, allocations: 0.6075 MB / 0.5754 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.3976, allocations: 55.8 kB / 0.5755 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.3977, allocations: 11.98 kB / 0.5755 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.398, allocations: 32.03 kB / 0.5755 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.3981, allocations: 55.89 kB / 0.5755 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.3981, allocations: 12 kB / 0.5756 GB, free: 5.453 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.3983, allocations: 160.1 kB / 0.5757 GB, free: 5.297 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3983, allocations: 0 / 0.5757 GB, free: 5.297 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004002/0.3987, allocations: 72 kB / 0.5758 GB, free: 5.227 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.002797/0.4015, allocations: 1.383 MB / 0.5771 GB, free: 3.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008327/0.4023, allocations: 296.1 kB / 0.5774 GB, free: 3.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4023, allocations: 0 / 0.5774 GB, free: 3.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.4027, allocations: 155.9 kB / 0.5776 GB, free: 3.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.4032, allocations: 43.78 kB / 0.5776 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005569/0.4087, allocations: 3.072 MB / 0.5806 GB, free: 268 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.4092, allocations: 0.7602 MB / 0.5813 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.4093, allocations: 22.28 kB / 0.5814 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.4094, allocations: 79.41 kB / 0.5814 GB, free: 15.37 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4094, allocations: 0 / 0.5814 GB, free: 15.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.4446, allocations: 8.274 MB / 0.5895 GB, free: 7.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.12, allocations: 11.61 kB / 0.5895 GB, free: 7.16 MB / 430.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.52898271504091]