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.001854/0.001854, allocations: 113 kB / 18.49 MB, free: 4.539 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.002101/0.002101, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.535/1.535, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.2409/0.2409, allocations: 46.93 MB / 357.8 MB, free: 10.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 63.91 kB / 0.4916 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1331, allocations: 65.99 MB / 0.5561 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00455/0.1376, allocations: 2.85 MB / 0.5588 GB, free: 2.961 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1392, allocations: 0.7906 MB / 0.5596 GB, free: 2.164 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.1394, allocations: 11.94 kB / 0.5596 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.1396, allocations: 59.39 kB / 0.5597 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.1399, allocations: 118.9 kB / 0.5598 GB, free: 1.977 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.1403, allocations: 115.8 kB / 0.5599 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005169/0.1408, allocations: 434 kB / 0.5603 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.141, allocations: 105.6 kB / 0.5604 GB, free: 1.328 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.1414, allocations: 187.3 kB / 0.5606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.1416, allocations: 183.2 kB / 0.5608 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.053e-05/0.1417, allocations: 32 kB / 0.5608 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.21e-05/0.1418, allocations: 32 kB / 0.5608 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.237e-05/0.1418, allocations: 83.69 kB / 0.5609 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.1421, allocations: 195.1 kB / 0.5611 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006082/0.1427, allocations: 446 kB / 0.5615 GB, free: 196 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1427, allocations: 4 kB / 0.5615 GB, free: 192 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1427, allocations: 0 / 0.5615 GB, free: 192 kB / 414.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1427, allocations: 0 / 0.5615 GB, free: 192 kB / 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.001163/0.1438, allocations: 0.6625 MB / 0.5622 GB, free: 15.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1439, allocations: 12.03 kB / 0.5622 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.123e-05/0.1439, allocations: 9.188 kB / 0.5622 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.155e-05/0.144, allocations: 78.72 kB / 0.5623 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.1443, allocations: 64.67 kB / 0.5623 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/0.1447, allocations: 283.7 kB / 0.5626 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.1448, allocations: 25.38 kB / 0.5626 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.1448, allocations: 44.33 kB / 0.5627 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.1455, allocations: 394.1 kB / 0.563 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.1456, allocations: 3.953 kB / 0.563 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.1456, allocations: 16 kB / 0.5631 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1456, allocations: 12 kB / 0.5631 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.1461, allocations: 227.7 kB / 0.5633 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.1486, allocations: 1.715 MB / 0.565 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004874/0.1491, allocations: 258.3 kB / 0.5652 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.1493, allocations: 90.08 kB / 0.5653 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.1493, allocations: 4 kB / 0.5653 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.1494, allocations: 46.48 kB / 0.5653 GB, free: 11.94 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.415e-06/0.1494, allocations: 4 kB / 0.5654 GB, free: 11.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007539/0.1501, allocations: 257.5 kB / 0.5656 GB, free: 11.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/0.1503, allocations: 217.9 kB / 0.5658 GB, free: 11.42 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.1506, allocations: 279.2 kB / 0.5661 GB, free: 11.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1506, allocations: 29.7 kB / 0.5661 GB, free: 11.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.1508, allocations: 248.2 kB / 0.5663 GB, free: 10.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1509, allocations: 127 kB / 0.5665 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.1511, allocations: 98.23 kB / 0.5665 GB, free: 10.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.1513, allocations: 350.7 kB / 0.5669 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.1515, allocations: 97.27 kB / 0.567 GB, free: 10.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.152, allocations: 428.8 kB / 0.5674 GB, free: 9.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007866/0.1527, allocations: 0.5741 MB / 0.5679 GB, free: 8.867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.1528, allocations: 8 kB / 0.568 GB, free: 8.859 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009221/0.1537, allocations: 0.5211 MB / 0.5685 GB, free: 8.332 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.1537, allocations: 12 kB / 0.5685 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.1537, allocations: 12 kB / 0.5685 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.512e-05/0.1538, allocations: 16 kB / 0.5685 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.1542, allocations: 147.7 kB / 0.5686 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-05/0.1543, allocations: 23.92 kB / 0.5687 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.1546, allocations: 67.5 kB / 0.5687 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.646e-05/0.1546, allocations: 36.44 kB / 0.5688 GB, free: 8.023 MB / 430.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.0002075/0.1548, allocations: 181.7 kB / 0.5689 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.155, allocations: 35.81 kB / 0.569 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.525e-05/0.1551, allocations: 37.83 kB / 0.569 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.1551, allocations: 4 kB / 0.569 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1551, allocations: 0 / 0.569 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1551, allocations: 4 kB / 0.569 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.1565, allocations: 0.6553 MB / 0.5697 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1565, allocations: 0 / 0.5697 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.157, allocations: 91.88 kB / 0.5697 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.157, allocations: 0 / 0.5697 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.157, allocations: 19.94 kB / 0.5698 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.157, allocations: 7.984 kB / 0.5698 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.157, allocations: 4.125 kB / 0.5698 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008764/0.1579, allocations: 0.8288 MB / 0.5706 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.158, allocations: 112.8 kB / 0.5707 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.158, allocations: 11.94 kB / 0.5707 GB, free: 5.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003535/0.1584, allocations: 12 kB / 0.5707 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.1585, allocations: 23.91 kB / 0.5707 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1585, allocations: 11.98 kB / 0.5707 GB, free: 5.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.1587, allocations: 186 kB / 0.5709 GB, free: 5.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1587, allocations: 4 kB / 0.5709 GB, free: 5.684 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007824/0.1595, allocations: 99.89 kB / 0.571 GB, free: 5.586 MB / 430.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.001229/0.1607, allocations: 1.39 MB / 0.5724 GB, free: 4.156 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006154/0.1613, allocations: 282.5 kB / 0.5727 GB, free: 3.883 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1613, allocations: 8.062 kB / 0.5727 GB, free: 3.875 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1615, allocations: 83.83 kB / 0.5727 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.1625, allocations: 87.42 kB / 0.5728 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00665/0.1692, allocations: 4.935 MB / 0.5776 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.1697, allocations: 0.7951 MB / 0.5784 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.1699, allocations: 47.25 kB / 0.5785 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.17, allocations: 119.4 kB / 0.5786 GB, free: 13.35 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.17, allocations: 0 / 0.5786 GB, free: 13.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.1977, allocations: 6.765 MB / 0.5852 GB, free: 6.734 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.09/9.287, allocations: 4.938 kB / 0.5852 GB, free: 6.73 MB / 446.1 MB " [Timeout remaining time 651] (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: 12.98296890896745]