Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.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.0008814/0.0008814, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0009228/0.0009228, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8679/0.8679, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1352/0.1352, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Directions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.129e-05/2.286e-05, allocations: 9.938 kB / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002887/0.002909, allocations: 2.649 MB / 409.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.003943, allocations: 0.7292 MB / 410.2 MB, free: 14.84 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.004079, allocations: 15.88 kB / 410.2 MB, free: 14.82 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.004228, allocations: 63.31 kB / 410.3 MB, free: 14.76 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.00441, allocations: 126.8 kB / 410.4 MB, free: 14.63 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002372/0.004647, allocations: 103.8 kB / 410.5 MB, free: 14.53 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003316/0.004979, allocations: 466.1 kB / 411 MB, free: 14.07 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.005173, allocations: 118.8 kB / 411.1 MB, free: 13.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.005419, allocations: 263.4 kB / 411.3 MB, free: 13.7 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.005573, allocations: 135.6 kB / 411.5 MB, free: 13.57 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.005616, allocations: 32 kB / 411.5 MB, free: 13.54 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.362e-05/0.00565, allocations: 36 kB / 411.5 MB, free: 13.5 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 5.583e-05/0.005706, allocations: 83.67 kB / 411.6 MB, free: 13.42 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 9.435e-05/0.0058, allocations: 139.7 kB / 411.8 MB, free: 13.28 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.006133, allocations: 450.5 kB / 412.2 MB, free: 12.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.006136, allocations: 11.94 kB / 412.2 MB, free: 12.83 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006137, allocations: 0 / 412.2 MB, free: 12.83 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.006142, allocations: 0 / 412.2 MB, free: 12.83 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0007615/0.006904, allocations: 0.595 MB / 412.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.006944, allocations: 15.97 kB / 412.8 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.998e-05/0.007004, allocations: 78.7 kB / 412.9 MB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.455e-05/0.007069, allocations: 44.66 kB / 412.9 MB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.007403, allocations: 230 kB / 413.2 MB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.007427, allocations: 29.38 kB / 413.2 MB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/0.007474, allocations: 48.33 kB / 413.2 MB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000431/0.007905, allocations: 377.6 kB / 413.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.007924, allocations: 192 / 413.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.007955, allocations: 20.12 kB / 413.6 MB, free: 11.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.007967, allocations: 12 kB / 413.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.008282, allocations: 247.8 kB / 413.9 MB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009761/0.009258, allocations: 0.9728 MB / 414.9 MB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.009631, allocations: 331.5 kB / 415.2 MB, free: 9.691 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.009802, allocations: 154.5 kB / 415.3 MB, free: 9.531 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.009822, allocations: 4 kB / 415.3 MB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.009846, allocations: 42.5 kB / 415.4 MB, free: 9.477 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 1.303e-06/0.009847, allocations: 0 / 415.4 MB, free: 9.477 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.002155/0.012, allocations: 2.005 MB / 417.4 MB, free: 7.312 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.01205, allocations: 106.8 kB / 417.5 MB, free: 7.184 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.01221, allocations: 249.8 kB / 417.7 MB, free: 6.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.01223, allocations: 37.7 kB / 417.8 MB, free: 6.887 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.01232, allocations: 180.9 kB / 417.9 MB, free: 6.707 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.771e-05/0.01242, allocations: 206.2 kB / 418.1 MB, free: 6.504 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/0.0125, allocations: 94.23 kB / 418.2 MB, free: 6.406 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.928e-05/0.01259, allocations: 350.7 kB / 418.6 MB, free: 6.055 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.01274, allocations: 125.2 kB / 418.7 MB, free: 5.934 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.01294, allocations: 240.7 kB / 418.9 MB, free: 5.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.01335, allocations: 398 kB / 419.3 MB, free: 5.234 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.01335, allocations: 0 / 419.3 MB, free: 5.234 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006076/0.01395, allocations: 0.55 MB / 419.9 MB, free: 4.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.01397, allocations: 8 kB / 419.9 MB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.01398, allocations: 4 kB / 419.9 MB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002115/0.01419, allocations: 118.5 kB / 420 MB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.0144, allocations: 100 kB / 420.1 MB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.01705, allocations: 4.872 MB / 425 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.01717, allocations: 19.98 kB / 425 MB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.01719, allocations: 19.94 kB / 425 MB, free: 15.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.01734, allocations: 169.7 kB / 425.2 MB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.0174, allocations: 39.77 kB / 425.2 MB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.859e-05/0.01746, allocations: 50.11 kB / 425.3 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.01747, allocations: 8.062 kB / 425.3 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.01748, allocations: 4 kB / 425.3 MB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.01749, allocations: 3.984 kB / 425.3 MB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.01869, allocations: 1.242 MB / 426.5 MB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.0187, allocations: 8 kB / 426.5 MB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.0189, allocations: 95.88 kB / 426.6 MB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.01905, allocations: 94.52 kB / 426.7 MB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.01907, allocations: 12 kB / 426.7 MB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.021, allocations: 4.093 MB / 430.8 MB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.021, allocations: 4.031 kB / 430.8 MB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.0218, allocations: 0.9223 MB / 431.7 MB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.02184, allocations: 35.83 kB / 431.8 MB, free: 7.941 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.02186, allocations: 15.98 kB / 431.8 MB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.02199, allocations: 15.98 kB / 431.8 MB, free: 7.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.569e-05/0.02208, allocations: 55.73 kB / 431.9 MB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.02209, allocations: 19.98 kB / 431.9 MB, free: 7.836 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.0222, allocations: 169.2 kB / 432.1 MB, free: 7.672 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0222, allocations: 4 kB / 432.1 MB, free: 7.668 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004354/0.02264, allocations: 120 kB / 432.2 MB, free: 7.551 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.02367, allocations: 1.474 MB / 433.6 MB, free: 6.031 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007962/0.02446, allocations: 0.7574 MB / 434.4 MB, free: 5.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.02447, allocations: 0 / 434.4 MB, free: 5.234 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.02487, allocations: 0.5615 MB / 435 MB, free: 4.637 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.02529, allocations: 68.27 kB / 435 MB, free: 4.574 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.02901, allocations: 4.033 MB / 439.1 MB, free: 352 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001668/0.02918, allocations: 224.8 kB / 439.3 MB, free: 108 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.894e-05/0.02927, allocations: 31.27 kB / 439.3 MB, free: 76 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.02941, allocations: 128.5 kB / 439.4 MB, free: 15.95 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02941, allocations: 4 kB / 439.4 MB, free: 15.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.0536, allocations: 9.268 MB / 448.7 MB, free: 6.648 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.439/7.492, allocations: 3.953 kB / 448.7 MB, free: 6.645 MB / 426.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv failed! Error: Could not read variable J5.w in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv. Warning: Get data of variable J5.w from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.671679086983204]