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.001855/0.001855, allocations: 112.5 kB / 21.22 MB, free: 0.7461 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.002391/0.002391, allocations: 213.1 kB / 24.53 MB, free: 4.145 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.513/1.513, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2402/0.2402, allocations: 46.93 MB / 361.6 MB, free: 4.289 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.002003/0.002003, allocations: 67.89 kB / 0.4969 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3669, allocations: 66.03 MB / 0.5614 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004152/0.3711, allocations: 2.867 MB / 0.5642 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.3725, allocations: 0.7829 MB / 0.565 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.3728, allocations: 11.88 kB / 0.565 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.373, allocations: 59.44 kB / 0.565 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.3732, allocations: 130.8 kB / 0.5652 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.3735, allocations: 107.8 kB / 0.5653 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004714/0.374, allocations: 438 kB / 0.5657 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.3743, allocations: 111.9 kB / 0.5658 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.3745, allocations: 179.4 kB / 0.566 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.3748, allocations: 175.2 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.615e-05/0.3748, allocations: 32 kB / 0.5662 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.325e-05/0.3749, allocations: 43.98 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.375, allocations: 79.64 kB / 0.5663 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.3752, allocations: 203.1 kB / 0.5665 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.3757, allocations: 442.1 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3757, allocations: 0 / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3757, allocations: 0 / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3757, allocations: 0 / 0.5669 GB, free: 14.84 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.001018/0.3767, allocations: 0.5911 MB / 0.5675 GB, free: 14.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3768, allocations: 11.97 kB / 0.5675 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.939e-05/0.3768, allocations: 9.188 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.415e-05/0.3769, allocations: 70.72 kB / 0.5676 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/0.3772, allocations: 64.67 kB / 0.5676 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.3776, allocations: 217.9 kB / 0.5678 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.3776, allocations: 33.31 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.506e-05/0.3777, allocations: 44.33 kB / 0.5679 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006518/0.3783, allocations: 394.1 kB / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.3783, allocations: 7.953 kB / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.3784, allocations: 16 kB / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3784, allocations: 12 kB / 0.5683 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.3789, allocations: 219.7 kB / 0.5685 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.3812, allocations: 1.675 MB / 0.5702 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.3816, allocations: 250.3 kB / 0.5704 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.3818, allocations: 94.08 kB / 0.5705 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3818, allocations: 8 kB / 0.5705 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3819, allocations: 42.5 kB / 0.5705 GB, free: 10.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.864e-06/0.3819, allocations: 0 / 0.5705 GB, free: 10.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.00069/0.3825, allocations: 269.1 kB / 0.5708 GB, free: 10.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.3827, allocations: 213.6 kB / 0.571 GB, free: 10.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.383, allocations: 276.5 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.383, allocations: 29.7 kB / 0.5713 GB, free: 9.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3832, allocations: 248.5 kB / 0.5715 GB, free: 9.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.3833, allocations: 134.9 kB / 0.5717 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.3834, allocations: 98.3 kB / 0.5718 GB, free: 9.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3836, allocations: 342.8 kB / 0.5721 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3838, allocations: 101.2 kB / 0.5722 GB, free: 9.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.3842, allocations: 432.8 kB / 0.5726 GB, free: 8.473 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007134/0.385, allocations: 0.5667 MB / 0.5731 GB, free: 7.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.385, allocations: 4 kB / 0.5731 GB, free: 7.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008833/0.3858, allocations: 0.5246 MB / 0.5737 GB, free: 7.211 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3859, allocations: 12.94 kB / 0.5737 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.3859, allocations: 12 kB / 0.5737 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.3859, allocations: 20 kB / 0.5737 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.3864, allocations: 147.7 kB / 0.5738 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.501e-05/0.3864, allocations: 23.92 kB / 0.5739 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.3867, allocations: 63.62 kB / 0.5739 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.3867, allocations: 35.94 kB / 0.574 GB, free: 6.902 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.00021/0.387, allocations: 177.5 kB / 0.5741 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.3871, allocations: 35.8 kB / 0.5742 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.531e-05/0.3872, allocations: 45.83 kB / 0.5742 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.3872, allocations: 7.938 kB / 0.5742 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3872, allocations: 0 / 0.5742 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3872, allocations: 4 kB / 0.5742 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.3886, allocations: 0.6231 MB / 0.5748 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3886, allocations: 4 kB / 0.5748 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.389, allocations: 91.94 kB / 0.5749 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.948e-06/0.389, allocations: 4 kB / 0.5749 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.389, allocations: 11.94 kB / 0.5749 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.389, allocations: 4 kB / 0.5749 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.389, allocations: 0 / 0.5749 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008197/0.3899, allocations: 0.8365 MB / 0.5758 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.3899, allocations: 31.92 kB / 0.5758 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.655e-05/0.39, allocations: 11.94 kB / 0.5758 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003352/0.3903, allocations: 16 kB / 0.5758 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/0.3904, allocations: 31.88 kB / 0.5758 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.3904, allocations: 8 kB / 0.5758 GB, free: 4.867 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001808/0.3906, allocations: 191.1 kB / 0.576 GB, free: 4.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3906, allocations: 0 / 0.576 GB, free: 4.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007436/0.3913, allocations: 99.83 kB / 0.5761 GB, free: 4.582 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.001087/0.3924, allocations: 1.386 MB / 0.5775 GB, free: 3.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006109/0.393, allocations: 286.2 kB / 0.5778 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.393, allocations: 0 / 0.5778 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.3932, allocations: 96.58 kB / 0.5778 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009818/0.3942, allocations: 74.91 kB / 0.5779 GB, free: 2.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005932/0.4001, allocations: 4.953 MB / 0.5828 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.4006, allocations: 0.799 MB / 0.5835 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001694/0.4007, allocations: 43.25 kB / 0.5836 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.4009, allocations: 115.4 kB / 0.5837 GB, free: 12.35 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4009, allocations: 4 kB / 0.5837 GB, free: 12.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.4297, allocations: 7.13 MB / 0.5907 GB, free: 5.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.49, allocations: 11.98 kB / 0.5907 GB, free: 5.371 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: 15.918984910007566]