Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001424/0.001424, 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.001533/0.001533, 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.596/1.596, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2504/0.2504, allocations: 44.9 MB / 355.8 MB, free: 12.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 67.89 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1387, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00457/0.1433, allocations: 2.852 MB / 0.5552 GB, free: 7.301 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002657/0.1459, allocations: 0.7868 MB / 0.556 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006589/0.1466, allocations: 11.94 kB / 0.556 GB, free: 6.496 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004568/0.1471, allocations: 51.39 kB / 0.556 GB, free: 6.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008237/0.1479, allocations: 134.8 kB / 0.5562 GB, free: 6.312 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007089/0.1486, allocations: 99.86 kB / 0.5563 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008433/0.1494, allocations: 449.9 kB / 0.5567 GB, free: 5.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003011/0.1497, allocations: 101.9 kB / 0.5568 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.1502, allocations: 195.3 kB / 0.557 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.1505, allocations: 179.2 kB / 0.5572 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.877e-05/0.1506, allocations: 32 kB / 0.5572 GB, free: 5.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.1508, allocations: 36 kB / 0.5572 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1509, allocations: 75.7 kB / 0.5573 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.1512, allocations: 199.1 kB / 0.5575 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007834/0.1519, allocations: 442.1 kB / 0.5579 GB, free: 4.531 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1519, allocations: 0 / 0.5579 GB, free: 4.531 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1519, allocations: 4 kB / 0.5579 GB, free: 4.527 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.499e-05/0.152, allocations: 0 / 0.5579 GB, free: 4.527 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.001366/0.1533, allocations: 0.6703 MB / 0.5586 GB, free: 3.809 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1534, allocations: 8.031 kB / 0.5586 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.621e-05/0.1534, allocations: 9.188 kB / 0.5586 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.131e-05/0.1535, allocations: 78.72 kB / 0.5587 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002856/0.1538, allocations: 60.67 kB / 0.5587 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004837/0.1543, allocations: 279.8 kB / 0.559 GB, free: 3.332 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.1543, allocations: 29.38 kB / 0.559 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.1544, allocations: 44.33 kB / 0.559 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007443/0.1551, allocations: 398.1 kB / 0.5594 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.681e-05/0.1552, allocations: 11.89 kB / 0.5594 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.1552, allocations: 16 kB / 0.5595 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1552, allocations: 8 kB / 0.5595 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.1557, allocations: 227.3 kB / 0.5597 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.1584, allocations: 1.715 MB / 0.5614 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005164/0.1589, allocations: 254.4 kB / 0.5616 GB, free: 460 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.1591, allocations: 90.02 kB / 0.5617 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.1591, allocations: 7.984 kB / 0.5617 GB, free: 340 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.1591, allocations: 50.48 kB / 0.5617 GB, free: 280 kB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.944e-06/0.1591, allocations: 0 / 0.5617 GB, free: 280 kB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007816/0.1599, allocations: 269.2 kB / 0.562 GB, free: 4 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.1601, allocations: 210 kB / 0.5622 GB, free: 15.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.1604, allocations: 279.2 kB / 0.5625 GB, free: 15.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.1604, allocations: 33.7 kB / 0.5625 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.1606, allocations: 244 kB / 0.5627 GB, free: 15.19 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1608, allocations: 122.9 kB / 0.5628 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.1609, allocations: 106.2 kB / 0.5629 GB, free: 14.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1611, allocations: 350.7 kB / 0.5633 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1613, allocations: 93.27 kB / 0.5634 GB, free: 14.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.1618, allocations: 428.8 kB / 0.5638 GB, free: 13.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008097/0.1626, allocations: 0.5663 MB / 0.5643 GB, free: 13.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.1626, allocations: 4 kB / 0.5643 GB, free: 13.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009832/0.1636, allocations: 0.5293 MB / 0.5648 GB, free: 12.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.1636, allocations: 11.94 kB / 0.5649 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.1637, allocations: 15.98 kB / 0.5649 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.956e-05/0.1637, allocations: 19.94 kB / 0.5649 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.1642, allocations: 147.8 kB / 0.565 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.709e-05/0.1642, allocations: 23.92 kB / 0.5651 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.1645, allocations: 63.56 kB / 0.5651 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.1646, allocations: 39.92 kB / 0.5652 GB, free: 12.36 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.0002212/0.1648, allocations: 181.7 kB / 0.5653 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.165, allocations: 31.81 kB / 0.5654 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.652e-05/0.1651, allocations: 33.83 kB / 0.5654 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1651, allocations: 4 kB / 0.5654 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1651, allocations: 4 kB / 0.5654 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1651, allocations: 0 / 0.5654 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.1665, allocations: 0.6592 MB / 0.566 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1665, allocations: 4.625 kB / 0.566 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.167, allocations: 87.89 kB / 0.5661 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.167, allocations: 4 kB / 0.5661 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.167, allocations: 11.94 kB / 0.5661 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.167, allocations: 11.98 kB / 0.5662 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.167, allocations: 4 kB / 0.5662 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008978/0.1679, allocations: 0.8282 MB / 0.567 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.168, allocations: 112.8 kB / 0.5671 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.223e-05/0.1681, allocations: 15.94 kB / 0.5671 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.1685, allocations: 8 kB / 0.5671 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.891e-05/0.1685, allocations: 19.97 kB / 0.5671 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.1685, allocations: 11.98 kB / 0.5671 GB, free: 10.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.1687, allocations: 189.9 kB / 0.5673 GB, free: 10.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1687, allocations: 4 kB / 0.5673 GB, free: 10.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007855/0.1695, allocations: 99.89 kB / 0.5674 GB, free: 9.922 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.001249/0.1708, allocations: 1.39 MB / 0.5688 GB, free: 8.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006516/0.1714, allocations: 286.3 kB / 0.569 GB, free: 8.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1714, allocations: 4.188 kB / 0.569 GB, free: 8.215 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.1716, allocations: 87.83 kB / 0.5691 GB, free: 8.129 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.1726, allocations: 72.83 kB / 0.5692 GB, free: 8.059 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.1795, allocations: 4.946 MB / 0.574 GB, free: 2.676 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/0.18, allocations: 0.795 MB / 0.5748 GB, free: 1.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.1802, allocations: 47.25 kB / 0.5749 GB, free: 1.801 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.1804, allocations: 123.3 kB / 0.575 GB, free: 1.68 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1804, allocations: 0 / 0.575 GB, free: 1.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.2097, allocations: 6.754 MB / 0.5816 GB, free: 11.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.212/9.422, allocations: 21.48 kB / 0.5816 GB, free: 11.05 MB / 446.1 MB " [Timeout remaining time 650] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 13.175881117000245]