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.001628/0.001628, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002287/0.002287, allocations: 204.7 kB / 24.51 MB, free: 3.945 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.529/1.529, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.2304/0.2304, allocations: 46.96 MB / 361.6 MB, free: 3.91 MB / 286.1 MB " [Timeout remaining time 180] 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.002541/0.002541, allocations: 79.88 kB / 0.4969 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.387, allocations: 66.08 MB / 0.5614 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004482/0.3915, allocations: 2.258 MB / 0.5636 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.3934, allocations: 0.8607 MB / 0.5645 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.3936, allocations: 7.938 kB / 0.5645 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.3939, allocations: 47.58 kB / 0.5645 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002669/0.3942, allocations: 79.33 kB / 0.5646 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.3947, allocations: 147.6 kB / 0.5647 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004738/0.3951, allocations: 355.3 kB / 0.5651 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.3954, allocations: 70.94 kB / 0.5651 GB, free: 208 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.3957, allocations: 159.5 kB / 0.5653 GB, free: 48 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.396, allocations: 163.5 kB / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.002e-05/0.3961, allocations: 28 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.3963, allocations: 91.77 kB / 0.5656 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.3964, allocations: 75.75 kB / 0.5656 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.3966, allocations: 111.5 kB / 0.5657 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006001/0.3972, allocations: 390.5 kB / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3972, allocations: 0 / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3972, allocations: 4 kB / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3972, allocations: 0 / 0.5661 GB, free: 15.2 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.001118/0.3983, allocations: 0.5129 MB / 0.5666 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.3984, allocations: 12.03 kB / 0.5666 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.339e-05/0.3984, allocations: 4.688 kB / 0.5666 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.723e-05/0.3985, allocations: 62.72 kB / 0.5667 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002163/0.3987, allocations: 40.78 kB / 0.5667 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004305/0.3991, allocations: 194.8 kB / 0.5669 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.3991, allocations: 16.88 kB / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.53e-05/0.3992, allocations: 24.38 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006022/0.3998, allocations: 271.9 kB / 0.5672 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.3998, allocations: 7.938 kB / 0.5672 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.3999, allocations: 8 kB / 0.5672 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3999, allocations: 8 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.4005, allocations: 233.9 kB / 0.5675 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.402, allocations: 0.642 MB / 0.5681 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006275/0.4026, allocations: 223.5 kB / 0.5683 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.4029, allocations: 128.4 kB / 0.5684 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.4029, allocations: 7.938 kB / 0.5684 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.403, allocations: 42.5 kB / 0.5685 GB, free: 12.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 3.096e-06/0.403, allocations: 0 / 0.5685 GB, free: 12.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003378/0.4064, allocations: 1.189 MB / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.4064, allocations: 59.41 kB / 0.5697 GB, free: 11.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.4067, allocations: 207.8 kB / 0.5699 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.4067, allocations: 37.7 kB / 0.5699 GB, free: 11.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.4068, allocations: 140.8 kB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.407, allocations: 123 kB / 0.5702 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.4071, allocations: 65.69 kB / 0.5702 GB, free: 10.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4073, allocations: 338.8 kB / 0.5706 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.4075, allocations: 119.9 kB / 0.5707 GB, free: 10.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.4078, allocations: 156.5 kB / 0.5708 GB, free: 10.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.4083, allocations: 239.9 kB / 0.5711 GB, free: 9.875 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4083, allocations: 4 kB / 0.5711 GB, free: 9.871 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009549/0.4093, allocations: 422 kB / 0.5715 GB, free: 9.449 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.4093, allocations: 7.938 kB / 0.5715 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4093, allocations: 3.938 kB / 0.5715 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005631/0.4099, allocations: 196.8 kB / 0.5717 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.4101, allocations: 55.91 kB / 0.5717 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000909/0.411, allocations: 0.7281 MB / 0.5724 GB, free: 8.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.4113, allocations: 32 kB / 0.5725 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.4113, allocations: 15.98 kB / 0.5725 GB, free: 8.387 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.000228/0.4116, allocations: 151 kB / 0.5726 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.286e-05/0.4116, allocations: 31.92 kB / 0.5726 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.109e-05/0.4117, allocations: 38.58 kB / 0.5727 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.4117, allocations: 4 kB / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.4117, allocations: 0 / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4118, allocations: 0 / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.4135, allocations: 0.8729 MB / 0.5735 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4135, allocations: 4.031 kB / 0.5735 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.4138, allocations: 51.91 kB / 0.5736 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004182/0.4142, allocations: 168.7 kB / 0.5738 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.4142, allocations: 11.98 kB / 0.5738 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007488/0.415, allocations: 0.6889 MB / 0.5744 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.415, allocations: 3.938 kB / 0.5744 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.4163, allocations: 0.6038 MB / 0.575 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.4165, allocations: 55.77 kB / 0.5751 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.269e-05/0.4165, allocations: 11.94 kB / 0.5751 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.4168, allocations: 31.95 kB / 0.5751 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.4169, allocations: 47.91 kB / 0.5752 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.417, allocations: 20.05 kB / 0.5752 GB, free: 5.484 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001796/0.4171, allocations: 156.1 kB / 0.5753 GB, free: 5.332 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4171, allocations: 0 / 0.5753 GB, free: 5.332 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.4176, allocations: 75.98 kB / 0.5754 GB, free: 5.258 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.002979/0.4205, allocations: 1.414 MB / 0.5768 GB, free: 3.941 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008835/0.4214, allocations: 300 kB / 0.5771 GB, free: 3.648 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4214, allocations: 0 / 0.5771 GB, free: 3.648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.4218, allocations: 147.8 kB / 0.5772 GB, free: 3.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005026/0.4223, allocations: 40.09 kB / 0.5773 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005877/0.4282, allocations: 3.076 MB / 0.5803 GB, free: 284 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.4284, allocations: 154.7 kB / 0.5804 GB, free: 104 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.4285, allocations: 22.28 kB / 0.5804 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.4287, allocations: 71.41 kB / 0.5805 GB, free: 12 kB / 414.1 MB Notification: Performance of SimCode: time 2.004e-06/0.4287, allocations: 4 kB / 0.5805 GB, free: 8 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.4627, allocations: 7.485 MB / 0.5878 GB, free: 8.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.34, allocations: 4.062 kB / 0.5878 GB, free: 8.582 MB / 430.1 MB " [Timeout remaining time 645] (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.703204544028267]