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.001353/0.001353, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001703/0.001703, allocations: 213.4 kB / 24.52 MB, free: 3.941 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.54/1.54, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.239/0.239, allocations: 46.97 MB / 361.7 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] 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.002068/0.002068, allocations: 59.91 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4372, allocations: 66.04 MB / 0.5614 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004738/0.442, allocations: 2.641 MB / 0.5639 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.4435, allocations: 0.744 MB / 0.5647 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000285/0.4438, allocations: 15.88 kB / 0.5647 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.444, allocations: 59.38 kB / 0.5647 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003987/0.4444, allocations: 122.9 kB / 0.5648 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.4449, allocations: 115.8 kB / 0.565 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007179/0.4456, allocations: 430 kB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.446, allocations: 115.9 kB / 0.5655 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.4464, allocations: 175.4 kB / 0.5656 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.4467, allocations: 183.2 kB / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.489e-05/0.4468, allocations: 32 kB / 0.5658 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.447, allocations: 40 kB / 0.5659 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.4471, allocations: 75.7 kB / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002306/0.4473, allocations: 171.2 kB / 0.5661 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006275/0.4479, allocations: 442.1 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4479, allocations: 0 / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4479, allocations: 0 / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.448, allocations: 0 / 0.5665 GB, free: 14.86 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.001222/0.4492, allocations: 0.5911 MB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.639e-05/0.4493, allocations: 8.031 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.39e-05/0.4493, allocations: 17.17 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.4494, allocations: 78.7 kB / 0.5672 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003191/0.4497, allocations: 60.62 kB / 0.5673 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.4503, allocations: 221.9 kB / 0.5675 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.4503, allocations: 29.38 kB / 0.5675 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.99e-05/0.4504, allocations: 48.33 kB / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007767/0.4512, allocations: 390.1 kB / 0.5679 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.4512, allocations: 7.953 kB / 0.5679 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.4512, allocations: 16 kB / 0.568 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4512, allocations: 12 kB / 0.568 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/0.4517, allocations: 223.7 kB / 0.5682 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.4544, allocations: 1.601 MB / 0.5697 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004962/0.4549, allocations: 258.3 kB / 0.57 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.4551, allocations: 86.08 kB / 0.5701 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.4551, allocations: 11.94 kB / 0.5701 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.4552, allocations: 42.56 kB / 0.5701 GB, free: 10.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.805e-06/0.4552, allocations: 0 / 0.5701 GB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007213/0.4559, allocations: 265.1 kB / 0.5704 GB, free: 10.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.456, allocations: 217.6 kB / 0.5706 GB, free: 10.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.4563, allocations: 272.5 kB / 0.5708 GB, free: 10.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4564, allocations: 34.08 kB / 0.5709 GB, free: 10.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.4565, allocations: 252.2 kB / 0.5711 GB, free: 9.801 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.4566, allocations: 126.9 kB / 0.5712 GB, free: 9.676 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.4568, allocations: 102.3 kB / 0.5713 GB, free: 9.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.4569, allocations: 342.8 kB / 0.5717 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.4572, allocations: 101.2 kB / 0.5718 GB, free: 9.125 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.4576, allocations: 428.8 kB / 0.5722 GB, free: 8.551 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007427/0.4584, allocations: 0.5705 MB / 0.5727 GB, free: 7.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4584, allocations: 4 kB / 0.5727 GB, free: 7.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009184/0.4593, allocations: 0.5251 MB / 0.5732 GB, free: 7.285 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.4593, allocations: 8 kB / 0.5733 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.4593, allocations: 12 kB / 0.5733 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.4594, allocations: 20.03 kB / 0.5733 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/0.4598, allocations: 151.7 kB / 0.5734 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.4599, allocations: 19.92 kB / 0.5734 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.4602, allocations: 59.62 kB / 0.5735 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.4602, allocations: 35.94 kB / 0.5735 GB, free: 6.984 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.0002116/0.4604, allocations: 181.5 kB / 0.5737 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.4606, allocations: 36.3 kB / 0.5737 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.805e-05/0.4607, allocations: 33.83 kB / 0.5738 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4607, allocations: 8 kB / 0.5738 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.4607, allocations: 4 kB / 0.5738 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.4607, allocations: 0 / 0.5738 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.4621, allocations: 0.6153 MB / 0.5744 GB, free: 6.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4621, allocations: 4 kB / 0.5744 GB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004678/0.4626, allocations: 83.89 kB / 0.5745 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.4626, allocations: 7.938 kB / 0.5745 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.565e-05/0.4626, allocations: 19.92 kB / 0.5745 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.4626, allocations: 4 kB / 0.5745 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4626, allocations: 8 kB / 0.5745 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009252/0.4635, allocations: 0.8221 MB / 0.5753 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.4636, allocations: 35.69 kB / 0.5754 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.87e-05/0.4637, allocations: 11.94 kB / 0.5754 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003608/0.464, allocations: 15.98 kB / 0.5754 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.053e-05/0.4641, allocations: 19.97 kB / 0.5754 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.4641, allocations: 8 kB / 0.5754 GB, free: 4.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002186/0.4644, allocations: 191.1 kB / 0.5756 GB, free: 4.785 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4644, allocations: 4 kB / 0.5756 GB, free: 4.781 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008356/0.4652, allocations: 99.89 kB / 0.5757 GB, free: 4.684 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.001198/0.4664, allocations: 1.383 MB / 0.577 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006344/0.467, allocations: 282.8 kB / 0.5773 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.467, allocations: 4 kB / 0.5773 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.4672, allocations: 88.02 kB / 0.5774 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.4683, allocations: 83.34 kB / 0.5775 GB, free: 2.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006898/0.4752, allocations: 4.94 MB / 0.5823 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.4754, allocations: 190.5 kB / 0.5825 GB, free: 13.24 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002009/0.4756, allocations: 47.25 kB / 0.5825 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.4758, allocations: 123.3 kB / 0.5826 GB, free: 13.07 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4758, allocations: 0 / 0.5826 GB, free: 13.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0324/0.5082, allocations: 7.123 MB / 0.5896 GB, free: 6.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.63, allocations: 15.92 kB / 0.5896 GB, free: 6.152 MB / 430.1 MB " [Timeout remaining time 647] (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: 16.074454972986132]