Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2301/0.2301, allocations: 46.96 MB / 360.9 MB, free: 4.043 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.88 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.318, allocations: 66.04 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003829/0.3218, allocations: 2.271 MB / 0.5628 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3233, allocations: 0.8528 MB / 0.5636 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.3234, allocations: 7.938 kB / 0.5636 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.3236, allocations: 55.52 kB / 0.5637 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.3238, allocations: 83.39 kB / 0.5638 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.3242, allocations: 147.6 kB / 0.5639 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004195/0.3246, allocations: 351.3 kB / 0.5642 GB, free: 476 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3248, allocations: 62.95 kB / 0.5643 GB, free: 408 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002664/0.325, allocations: 163.5 kB / 0.5645 GB, free: 244 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.3253, allocations: 171.4 kB / 0.5646 GB, free: 72 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.3253, allocations: 28 kB / 0.5646 GB, free: 44 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.3255, allocations: 80.06 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.3256, allocations: 75.67 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.3258, allocations: 119.4 kB / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.3262, allocations: 386.6 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3262, allocations: 0 / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3262, allocations: 4 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.3263, allocations: 0 / 0.5653 GB, free: 15.39 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.0009542/0.3272, allocations: 0.5207 MB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3272, allocations: 8.031 kB / 0.5658 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.303e-05/0.3273, allocations: 54.73 kB / 0.5658 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.3275, allocations: 36.78 kB / 0.5659 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.3278, allocations: 198.8 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.3279, allocations: 16.88 kB / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/0.3279, allocations: 28.38 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.3285, allocations: 272.1 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3285, allocations: 3.953 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.3285, allocations: 8 kB / 0.5664 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3285, allocations: 8 kB / 0.5664 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005325/0.3291, allocations: 229.9 kB / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3304, allocations: 0.6459 MB / 0.5672 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005483/0.331, allocations: 226.5 kB / 0.5675 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.3312, allocations: 121.2 kB / 0.5676 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.3312, allocations: 7.938 kB / 0.5676 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3313, allocations: 38.48 kB / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.3313, allocations: 0 / 0.5676 GB, free: 12.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003131/0.3344, allocations: 1.194 MB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.3345, allocations: 55.41 kB / 0.5688 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.3347, allocations: 203.9 kB / 0.569 GB, free: 11.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.3347, allocations: 37.69 kB / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3349, allocations: 140.8 kB / 0.5692 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.335, allocations: 115 kB / 0.5693 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.3351, allocations: 73.58 kB / 0.5694 GB, free: 10.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3353, allocations: 338.8 kB / 0.5697 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.3355, allocations: 123.9 kB / 0.5698 GB, free: 10.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.3358, allocations: 155.4 kB / 0.57 GB, free: 10.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/0.3363, allocations: 243.9 kB / 0.5702 GB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3363, allocations: 0 / 0.5702 GB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009099/0.3372, allocations: 418.1 kB / 0.5706 GB, free: 9.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3372, allocations: 11.94 kB / 0.5706 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3372, allocations: 0 / 0.5706 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004972/0.3377, allocations: 188.7 kB / 0.5708 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.3379, allocations: 55.91 kB / 0.5708 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008165/0.3388, allocations: 0.7355 MB / 0.5716 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.339, allocations: 40.02 kB / 0.5716 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.3391, allocations: 12.06 kB / 0.5716 GB, free: 8.594 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.0001712/0.3392, allocations: 151 kB / 0.5718 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.309e-05/0.3393, allocations: 23.86 kB / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.379e-05/0.3394, allocations: 38.64 kB / 0.5718 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3394, allocations: 4 kB / 0.5718 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3394, allocations: 0 / 0.5718 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3394, allocations: 11.98 kB / 0.5718 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.3411, allocations: 0.8728 MB / 0.5727 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3411, allocations: 0 / 0.5727 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.3413, allocations: 47.97 kB / 0.5727 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004044/0.3417, allocations: 176.7 kB / 0.5729 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.3418, allocations: 11.98 kB / 0.5729 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007093/0.3425, allocations: 0.6928 MB / 0.5736 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3425, allocations: 0 / 0.5736 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3436, allocations: 0.6113 MB / 0.5742 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.3437, allocations: 47.97 kB / 0.5742 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.91e-05/0.3438, allocations: 16 kB / 0.5742 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.3441, allocations: 35.95 kB / 0.5743 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.3442, allocations: 51.89 kB / 0.5743 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.3442, allocations: 8 kB / 0.5743 GB, free: 5.688 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.3444, allocations: 160.1 kB / 0.5745 GB, free: 5.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3444, allocations: 0 / 0.5745 GB, free: 5.531 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003873/0.3448, allocations: 71.94 kB / 0.5746 GB, free: 5.461 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.002781/0.3475, allocations: 1.421 MB / 0.5759 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000776/0.3483, allocations: 295.9 kB / 0.5762 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3483, allocations: 0 / 0.5762 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.3487, allocations: 155.7 kB / 0.5764 GB, free: 3.723 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.3491, allocations: 40.14 kB / 0.5764 GB, free: 3.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005163/0.3543, allocations: 3.066 MB / 0.5794 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.3545, allocations: 150.7 kB / 0.5796 GB, free: 344 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.3546, allocations: 26.28 kB / 0.5796 GB, free: 320 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3547, allocations: 75.41 kB / 0.5797 GB, free: 244 kB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3547, allocations: 0 / 0.5797 GB, free: 244 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03724/0.392, allocations: 7.853 MB / 0.5873 GB, free: 8.461 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.07, allocations: 14.78 kB / 0.5873 GB, free: 8.449 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 16.237452619010583]