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.001839/0.001839, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002335/0.002335, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.608/1.608, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2487/0.2487, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.002199/0.002199, allocations: 71.84 kB / 0.4909 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1319, allocations: 66 MB / 0.5554 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004648/0.1365, allocations: 2.85 MB / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1383, allocations: 0.7829 MB / 0.5589 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003968/0.1387, allocations: 15.88 kB / 0.5589 GB, free: 2.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.1389, allocations: 55.44 kB / 0.559 GB, free: 2.125 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.1394, allocations: 134.8 kB / 0.5591 GB, free: 1.992 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.1398, allocations: 103.8 kB / 0.5592 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006952/0.1405, allocations: 438 kB / 0.5596 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002781/0.1408, allocations: 105.6 kB / 0.5597 GB, free: 1.352 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004775/0.1413, allocations: 187.3 kB / 0.5599 GB, free: 1.168 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003231/0.1416, allocations: 171.2 kB / 0.5601 GB, free: 1 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.1417, allocations: 32 kB / 0.5601 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.1418, allocations: 47.98 kB / 0.5602 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.894e-05/0.1419, allocations: 79.64 kB / 0.5602 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002411/0.1421, allocations: 199.1 kB / 0.5604 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006429/0.1428, allocations: 442.1 kB / 0.5608 GB, free: 220 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1428, allocations: 0 / 0.5608 GB, free: 220 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1428, allocations: 0 / 0.5608 GB, free: 220 kB / 414.1 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.1428, allocations: 0 / 0.5608 GB, free: 220 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.001242/0.144, allocations: 0.6605 MB / 0.5615 GB, free: 15.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1441, allocations: 8.031 kB / 0.5615 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.1442, allocations: 74.72 kB / 0.5616 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.1445, allocations: 64.62 kB / 0.5616 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.145, allocations: 283.8 kB / 0.5619 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.145, allocations: 25.38 kB / 0.5619 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/0.1451, allocations: 44.33 kB / 0.562 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.1458, allocations: 396.3 kB / 0.5623 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.1459, allocations: 7.953 kB / 0.5624 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.432e-05/0.1459, allocations: 16 kB / 0.5624 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.1459, allocations: 16 kB / 0.5624 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000487/0.1464, allocations: 219.7 kB / 0.5626 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.1491, allocations: 1.715 MB / 0.5643 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.1496, allocations: 258.3 kB / 0.5645 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.1498, allocations: 94.02 kB / 0.5646 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1498, allocations: 4 kB / 0.5646 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.1498, allocations: 46.5 kB / 0.5647 GB, free: 11.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.795e-06/0.1498, allocations: 0 / 0.5647 GB, free: 11.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007624/0.1506, allocations: 269.7 kB / 0.5649 GB, free: 11.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/0.1508, allocations: 221.6 kB / 0.5651 GB, free: 11.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.1511, allocations: 275.2 kB / 0.5654 GB, free: 11.17 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.1511, allocations: 25.7 kB / 0.5654 GB, free: 11.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.1513, allocations: 252 kB / 0.5657 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1515, allocations: 119.1 kB / 0.5658 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.1516, allocations: 98.3 kB / 0.5659 GB, free: 10.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.1518, allocations: 342.8 kB / 0.5662 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.152, allocations: 105.2 kB / 0.5663 GB, free: 10.22 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005046/0.1525, allocations: 424.8 kB / 0.5667 GB, free: 9.645 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008275/0.1533, allocations: 0.5703 MB / 0.5672 GB, free: 8.914 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.1533, allocations: 4 kB / 0.5673 GB, free: 8.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001002/0.1543, allocations: 0.5288 MB / 0.5678 GB, free: 8.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.1544, allocations: 15.94 kB / 0.5678 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.1544, allocations: 12 kB / 0.5678 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.1544, allocations: 16 kB / 0.5678 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000472/0.1549, allocations: 147.7 kB / 0.568 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.589e-05/0.1549, allocations: 24.42 kB / 0.568 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.1553, allocations: 75.52 kB / 0.568 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.1553, allocations: 32 kB / 0.5681 GB, free: 8.059 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.0002409/0.1556, allocations: 173.5 kB / 0.5682 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.1557, allocations: 39.73 kB / 0.5683 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1558, allocations: 37.83 kB / 0.5683 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1558, allocations: 4 kB / 0.5683 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1559, allocations: 0 / 0.5683 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1559, allocations: 4 kB / 0.5683 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.1574, allocations: 0.6514 MB / 0.569 GB, free: 7.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.1574, allocations: 4 kB / 0.569 GB, free: 7.078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.1578, allocations: 91.88 kB / 0.5691 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.1578, allocations: 4 kB / 0.5691 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.1579, allocations: 8 kB / 0.5691 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.1579, allocations: 4.438 kB / 0.5691 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1579, allocations: 4.062 kB / 0.5691 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/0.1588, allocations: 0.8387 MB / 0.5699 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1589, allocations: 108.8 kB / 0.57 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.159, allocations: 12 kB / 0.57 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.1594, allocations: 8 kB / 0.57 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.322e-05/0.1594, allocations: 31.84 kB / 0.57 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.1595, allocations: 15.94 kB / 0.5701 GB, free: 5.906 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.1597, allocations: 186 kB / 0.5702 GB, free: 5.723 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1597, allocations: 0 / 0.5702 GB, free: 5.723 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008339/0.1605, allocations: 103.8 kB / 0.5703 GB, free: 5.621 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.0013/0.1618, allocations: 1.387 MB / 0.5717 GB, free: 4.195 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006444/0.1624, allocations: 285.5 kB / 0.572 GB, free: 3.918 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1624, allocations: 4 kB / 0.572 GB, free: 3.914 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1626, allocations: 83.77 kB / 0.572 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.1637, allocations: 88.12 kB / 0.5721 GB, free: 3.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007025/0.1707, allocations: 4.93 MB / 0.5769 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.1713, allocations: 0.7951 MB / 0.5777 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.1714, allocations: 43.27 kB / 0.5778 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.1716, allocations: 119.4 kB / 0.5779 GB, free: 13.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1716, allocations: 0 / 0.5779 GB, free: 13.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03597/0.2076, allocations: 6.729 MB / 0.5844 GB, free: 6.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.862/9.07, allocations: 7.219 kB / 0.5845 GB, free: 6.789 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.60542976600118]