Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, allocations: 120 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.00205, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 230.4 MB / 254.7 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.23/0.23, allocations: 46.92 MB / 357.7 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 75.88 kB / 0.4916 GB, free: 26.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1216, allocations: 66.05 MB / 0.5561 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004522/0.1261, allocations: 2.858 MB / 0.5589 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1279, allocations: 0.7751 MB / 0.5597 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003179/0.1282, allocations: 15.88 kB / 0.5597 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002381/0.1285, allocations: 51.45 kB / 0.5598 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.1288, allocations: 134.8 kB / 0.5599 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.1293, allocations: 107.7 kB / 0.56 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005557/0.1298, allocations: 441.9 kB / 0.5604 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002522/0.1301, allocations: 105.9 kB / 0.5605 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.1304, allocations: 183.4 kB / 0.5607 GB, free: 4.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.1307, allocations: 179.2 kB / 0.5609 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.1307, allocations: 32 kB / 0.5609 GB, free: 3.812 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.1308, allocations: 44 kB / 0.5609 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.33e-05/0.1309, allocations: 79.69 kB / 0.561 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1311, allocations: 199 kB / 0.5612 GB, free: 3.496 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000579/0.1317, allocations: 438.1 kB / 0.5616 GB, free: 3.066 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1317, allocations: 0 / 0.5616 GB, free: 3.066 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1317, allocations: 3.938 kB / 0.5616 GB, free: 3.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1317, allocations: 0 / 0.5616 GB, free: 3.062 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.001125/0.1328, allocations: 0.6703 MB / 0.5623 GB, free: 2.344 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.1329, allocations: 8.031 kB / 0.5623 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.429e-05/0.1329, allocations: 9.188 kB / 0.5623 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.311e-05/0.133, allocations: 74.72 kB / 0.5624 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.1333, allocations: 60.67 kB / 0.5624 GB, free: 2.184 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.1337, allocations: 283.6 kB / 0.5627 GB, free: 1.867 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.1338, allocations: 29.38 kB / 0.5627 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.1338, allocations: 44.33 kB / 0.5628 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.1345, allocations: 398 kB / 0.5631 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.1345, allocations: 11.95 kB / 0.5631 GB, free: 1.363 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.424e-05/0.1346, allocations: 20 kB / 0.5632 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1346, allocations: 8 kB / 0.5632 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.135, allocations: 222.5 kB / 0.5634 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.1375, allocations: 1.715 MB / 0.5651 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004645/0.1379, allocations: 258.3 kB / 0.5653 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.1381, allocations: 86.08 kB / 0.5654 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1381, allocations: 8 kB / 0.5654 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1382, allocations: 46.48 kB / 0.5654 GB, free: 14.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.675e-06/0.1382, allocations: 0 / 0.5654 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007292/0.1389, allocations: 269.8 kB / 0.5657 GB, free: 14.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.139, allocations: 217.6 kB / 0.5659 GB, free: 14.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.1393, allocations: 275.2 kB / 0.5662 GB, free: 14.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1394, allocations: 33.7 kB / 0.5662 GB, free: 13.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1395, allocations: 244.2 kB / 0.5664 GB, free: 13.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1396, allocations: 126.9 kB / 0.5666 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.1398, allocations: 102.3 kB / 0.5667 GB, free: 13.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1399, allocations: 350.7 kB / 0.567 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.1401, allocations: 93.27 kB / 0.5671 GB, free: 13.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.1406, allocations: 432.8 kB / 0.5675 GB, free: 12.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007321/0.1413, allocations: 0.5663 MB / 0.568 GB, free: 11.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.1414, allocations: 4 kB / 0.568 GB, free: 11.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009016/0.1423, allocations: 0.5322 MB / 0.5686 GB, free: 11.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.1423, allocations: 11.98 kB / 0.5686 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.1423, allocations: 12 kB / 0.5686 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/0.1423, allocations: 16.5 kB / 0.5686 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004434/0.1428, allocations: 144.4 kB / 0.5687 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.1428, allocations: 23.92 kB / 0.5688 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.1431, allocations: 71.56 kB / 0.5688 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.1431, allocations: 39.94 kB / 0.5689 GB, free: 10.89 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.0001946/0.1433, allocations: 177.6 kB / 0.569 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.1435, allocations: 31.81 kB / 0.5691 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.553e-05/0.1436, allocations: 33.83 kB / 0.5691 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1436, allocations: 4 kB / 0.5691 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.1436, allocations: 4.234 kB / 0.5691 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1436, allocations: 4 kB / 0.5691 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.1449, allocations: 0.6514 MB / 0.5698 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.1449, allocations: 7.984 kB / 0.5698 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004543/0.1454, allocations: 87.89 kB / 0.5698 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.1454, allocations: 4 kB / 0.5698 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.1454, allocations: 15.92 kB / 0.5699 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.1454, allocations: 8.062 kB / 0.5699 GB, free: 9.797 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1454, allocations: 4 kB / 0.5699 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008051/0.1462, allocations: 0.826 MB / 0.5707 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.1463, allocations: 104.9 kB / 0.5708 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.1464, allocations: 19.94 kB / 0.5708 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.1467, allocations: 7.984 kB / 0.5708 GB, free: 8.785 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.1468, allocations: 23.92 kB / 0.5708 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1468, allocations: 15.98 kB / 0.5708 GB, free: 8.746 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.147, allocations: 186 kB / 0.571 GB, free: 8.562 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.147, allocations: 0 / 0.571 GB, free: 8.562 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007353/0.1477, allocations: 99.89 kB / 0.5711 GB, free: 8.465 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.001129/0.1488, allocations: 1.383 MB / 0.5725 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005858/0.1494, allocations: 285.7 kB / 0.5727 GB, free: 6.766 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1494, allocations: 0 / 0.5727 GB, free: 6.766 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.1496, allocations: 85.52 kB / 0.5728 GB, free: 6.684 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009844/0.1506, allocations: 85.08 kB / 0.5729 GB, free: 6.605 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006175/0.1568, allocations: 4.946 MB / 0.5777 GB, free: 1.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.1572, allocations: 0.799 MB / 0.5785 GB, free: 404 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001672/0.1574, allocations: 39.27 kB / 0.5786 GB, free: 360 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.1576, allocations: 123.4 kB / 0.5787 GB, free: 236 kB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1576, allocations: 0 / 0.5787 GB, free: 236 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.1835, allocations: 6.754 MB / 0.5853 GB, free: 9.605 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.837/9.021, allocations: 13.75 kB / 0.5853 GB, free: 9.598 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.262853836000431]