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.001408/0.001408, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001794/0.001794, allocations: 216.8 kB / 24.52 MB, free: 3.91 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.585/1.585, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2652/0.2652, allocations: 46.96 MB / 361.7 MB, free: 4.031 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+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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 71.89 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3665, allocations: 66.03 MB / 0.5613 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004018/0.3705, allocations: 2.252 MB / 0.5635 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3721, allocations: 0.8607 MB / 0.5644 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.3722, allocations: 7.938 kB / 0.5644 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.3725, allocations: 55.5 kB / 0.5644 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.3727, allocations: 83.34 kB / 0.5645 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004305/0.3731, allocations: 147.6 kB / 0.5647 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004403/0.3736, allocations: 351.2 kB / 0.565 GB, free: 476 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.3738, allocations: 66.95 kB / 0.5651 GB, free: 404 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/0.3741, allocations: 159.5 kB / 0.5652 GB, free: 244 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002845/0.3744, allocations: 167.3 kB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.3744, allocations: 28 kB / 0.5654 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.3746, allocations: 84.02 kB / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.3747, allocations: 75.75 kB / 0.5656 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.3749, allocations: 111.5 kB / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00054/0.3754, allocations: 394.5 kB / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3754, allocations: 0 / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3754, allocations: 0 / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3754, allocations: 0 / 0.566 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.001004/0.3764, allocations: 0.5207 MB / 0.5665 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3765, allocations: 12.03 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.08e-05/0.3765, allocations: 4.688 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.694e-05/0.3766, allocations: 62.72 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3768, allocations: 32.8 kB / 0.5667 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.3772, allocations: 190.8 kB / 0.5668 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.3772, allocations: 16.88 kB / 0.5669 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.3773, allocations: 24.38 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/0.3779, allocations: 275.9 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3779, allocations: 3.953 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.3779, allocations: 11.94 kB / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.3779, allocations: 12 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.3785, allocations: 233.8 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3799, allocations: 0.6381 MB / 0.568 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.3805, allocations: 234.4 kB / 0.5682 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.3807, allocations: 124.9 kB / 0.5684 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.3808, allocations: 7.938 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.3808, allocations: 38.5 kB / 0.5684 GB, free: 12.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.424e-06/0.3808, allocations: 0 / 0.5684 GB, free: 12.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0033/0.3841, allocations: 1.182 MB / 0.5696 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.3842, allocations: 55.41 kB / 0.5696 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3844, allocations: 215.8 kB / 0.5698 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.3845, allocations: 33.7 kB / 0.5698 GB, free: 11.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3846, allocations: 140.8 kB / 0.57 GB, free: 11.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3847, allocations: 119 kB / 0.5701 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.3848, allocations: 73.62 kB / 0.5702 GB, free: 10.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.385, allocations: 334.8 kB / 0.5705 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.3853, allocations: 116 kB / 0.5706 GB, free: 10.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.3856, allocations: 159.4 kB / 0.5707 GB, free: 10.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/0.3861, allocations: 243.9 kB / 0.571 GB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3861, allocations: 0 / 0.571 GB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000941/0.387, allocations: 429.9 kB / 0.5714 GB, free: 9.641 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.387, allocations: 7.938 kB / 0.5714 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.387, allocations: 0 / 0.5714 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000516/0.3876, allocations: 192.8 kB / 0.5716 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.3878, allocations: 55.91 kB / 0.5716 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008879/0.3887, allocations: 0.7242 MB / 0.5723 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.389, allocations: 35.98 kB / 0.5724 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.389, allocations: 15.98 kB / 0.5724 GB, free: 8.586 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.0002115/0.3892, allocations: 155.1 kB / 0.5725 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.852e-05/0.3893, allocations: 23.86 kB / 0.5726 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.003e-05/0.3894, allocations: 42.62 kB / 0.5726 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3894, allocations: 4 kB / 0.5726 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3894, allocations: 0 / 0.5726 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3894, allocations: 0 / 0.5726 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.3912, allocations: 0.8732 MB / 0.5735 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3912, allocations: 0 / 0.5735 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.3915, allocations: 47.91 kB / 0.5735 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004185/0.3919, allocations: 172.7 kB / 0.5737 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.3919, allocations: 15.92 kB / 0.5737 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007916/0.3927, allocations: 0.689 MB / 0.5744 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3927, allocations: 3.938 kB / 0.5744 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.394, allocations: 0.6073 MB / 0.575 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.3941, allocations: 51.77 kB / 0.575 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.22e-05/0.3942, allocations: 15.94 kB / 0.575 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.3944, allocations: 32.08 kB / 0.575 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.3946, allocations: 51.91 kB / 0.5751 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.3946, allocations: 11.98 kB / 0.5751 GB, free: 5.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.3947, allocations: 160.1 kB / 0.5753 GB, free: 5.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3947, allocations: 3.938 kB / 0.5753 GB, free: 5.523 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.3951, allocations: 68 kB / 0.5753 GB, free: 5.457 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.002939/0.3981, allocations: 1.413 MB / 0.5767 GB, free: 4.168 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008343/0.3989, allocations: 299.6 kB / 0.577 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3989, allocations: 0 / 0.577 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.3993, allocations: 155.9 kB / 0.5771 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.0004605/0.3997, allocations: 39.91 kB / 0.5772 GB, free: 3.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005521/0.4053, allocations: 3.079 MB / 0.5802 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.4054, allocations: 150.7 kB / 0.5803 GB, free: 328 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.4056, allocations: 26.27 kB / 0.5804 GB, free: 304 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.4057, allocations: 75.41 kB / 0.5804 GB, free: 228 kB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4057, allocations: 4 kB / 0.5804 GB, free: 224 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.4381, allocations: 7.478 MB / 0.5877 GB, free: 8.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.4, allocations: 4.062 kB / 0.5877 GB, free: 8.836 MB / 430.1 MB " [Timeout remaining time 645] (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: 17.886940205004066]