Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001347/0.001347, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002317/0.002317, allocations: 214.9 kB / 23.74 MB, free: 4.656 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.569/1.569, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.2447/0.2447, allocations: 46.93 MB / 360.9 MB, free: 4.258 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.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002217, allocations: 67.89 kB / 0.4962 GB, free: 7.883 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3135, allocations: 66.03 MB / 0.5606 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004702/0.3182, allocations: 2.867 MB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3198, allocations: 0.7829 MB / 0.5642 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.32, allocations: 15.88 kB / 0.5642 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.3202, allocations: 55.38 kB / 0.5643 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.3205, allocations: 126.9 kB / 0.5644 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.3209, allocations: 115.8 kB / 0.5645 GB, free: 488 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005367/0.3214, allocations: 430 kB / 0.5649 GB, free: 56 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.3217, allocations: 111.9 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.322, allocations: 183.3 kB / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.3223, allocations: 179.2 kB / 0.5654 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.3223, allocations: 32 kB / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.564e-05/0.3224, allocations: 36 kB / 0.5654 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.3225, allocations: 79.7 kB / 0.5655 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.3227, allocations: 203.1 kB / 0.5657 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.3232, allocations: 438.1 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3232, allocations: 4 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3232, allocations: 0 / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.3233, allocations: 0 / 0.5661 GB, free: 14.8 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.00103/0.3243, allocations: 0.5934 MB / 0.5667 GB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3243, allocations: 8.031 kB / 0.5667 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.96e-05/0.3244, allocations: 74.72 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.3247, allocations: 60.67 kB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004323/0.3251, allocations: 221.9 kB / 0.5671 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.3252, allocations: 33.38 kB / 0.5671 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.3252, allocations: 40.33 kB / 0.5671 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.3259, allocations: 390.3 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.326, allocations: 15.95 kB / 0.5675 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.326, allocations: 16 kB / 0.5675 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.326, allocations: 12 kB / 0.5675 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.3265, allocations: 219.7 kB / 0.5677 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002706/0.3292, allocations: 1.664 MB / 0.5694 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.3297, allocations: 258.3 kB / 0.5696 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.3299, allocations: 90.08 kB / 0.5697 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.3299, allocations: 11.94 kB / 0.5697 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.093e-05/0.33, allocations: 42.55 kB / 0.5698 GB, free: 10.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.044e-06/0.33, allocations: 0 / 0.5698 GB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007696/0.3308, allocations: 269.9 kB / 0.57 GB, free: 10.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.3309, allocations: 213.6 kB / 0.5702 GB, free: 10.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.3313, allocations: 276.5 kB / 0.5705 GB, free: 9.992 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.3313, allocations: 29.7 kB / 0.5705 GB, free: 9.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.3315, allocations: 248.2 kB / 0.5707 GB, free: 9.711 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.3316, allocations: 126.9 kB / 0.5709 GB, free: 9.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.3318, allocations: 106.4 kB / 0.571 GB, free: 9.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.332, allocations: 346.7 kB / 0.5713 GB, free: 9.129 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.3322, allocations: 97.27 kB / 0.5714 GB, free: 9.031 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/0.3327, allocations: 432.8 kB / 0.5718 GB, free: 8.453 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000787/0.3335, allocations: 0.5706 MB / 0.5724 GB, free: 7.723 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.3335, allocations: 4 kB / 0.5724 GB, free: 7.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001085/0.3346, allocations: 0.5282 MB / 0.5729 GB, free: 7.184 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.3346, allocations: 8 kB / 0.5729 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.3347, allocations: 12 kB / 0.5729 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.6e-05/0.3347, allocations: 16.78 kB / 0.5729 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.3352, allocations: 151.7 kB / 0.5731 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.128e-05/0.3352, allocations: 27.92 kB / 0.5731 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.3356, allocations: 59.62 kB / 0.5731 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.3356, allocations: 32 kB / 0.5732 GB, free: 6.883 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000247/0.3359, allocations: 185.4 kB / 0.5734 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.3361, allocations: 35.81 kB / 0.5734 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/0.3362, allocations: 33.83 kB / 0.5734 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3362, allocations: 7.938 kB / 0.5734 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.3362, allocations: 4 kB / 0.5734 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3362, allocations: 4 kB / 0.5734 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.3378, allocations: 0.6192 MB / 0.574 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3379, allocations: 4 kB / 0.574 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.3383, allocations: 91.88 kB / 0.5741 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.3383, allocations: 4 kB / 0.5741 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.3384, allocations: 12.06 kB / 0.5741 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.3384, allocations: 11.92 kB / 0.5742 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3384, allocations: 3.938 kB / 0.5742 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009375/0.3393, allocations: 0.8299 MB / 0.575 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.957e-05/0.3394, allocations: 35.73 kB / 0.575 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.3394, allocations: 15.94 kB / 0.575 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.3398, allocations: 12.12 kB / 0.575 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.3399, allocations: 27.95 kB / 0.5751 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.3399, allocations: 8 kB / 0.5751 GB, free: 4.844 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.3401, allocations: 187.1 kB / 0.5752 GB, free: 4.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3401, allocations: 0 / 0.5752 GB, free: 4.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007736/0.3409, allocations: 95.89 kB / 0.5753 GB, free: 4.566 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001218/0.3421, allocations: 1.386 MB / 0.5767 GB, free: 3.145 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006658/0.3427, allocations: 293 kB / 0.577 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3428, allocations: 0 / 0.577 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.3429, allocations: 93.83 kB / 0.5771 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.344, allocations: 75.92 kB / 0.5771 GB, free: 2.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.3512, allocations: 4.952 MB / 0.582 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.3517, allocations: 0.799 MB / 0.5827 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001963/0.3519, allocations: 43.27 kB / 0.5828 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.3521, allocations: 119.4 kB / 0.5829 GB, free: 12.32 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3521, allocations: 0 / 0.5829 GB, free: 12.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.3929, allocations: 7.114 MB / 0.5898 GB, free: 5.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.29, allocations: 5.047 kB / 0.5899 GB, free: 5.363 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 15.488675718894228]