Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.001732/0.001732, allocations: 113.6 kB / 17.12 MB, free: 5.93 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.002712/0.002712, allocations: 213 kB / 20.09 MB, free: 2.977 MB / 14.72 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 1.666/1.666, allocations: 207.6 MB / 230.5 MB, free: 4.035 MB / 174.1 MB " [Timeout remaining time 178] 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.3725/0.3725, allocations: 44.23 MB / 326.6 MB, free: 6.793 MB / 254.1 MB " [Timeout remaining time 179] 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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002462/0.002462, allocations: 68.36 kB / 462.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2879, allocations: 61 MB / 0.5109 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00308/0.291, allocations: 1.671 MB / 0.5126 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000339/0.2913, allocations: 114.8 kB / 0.5127 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.742e-05/0.2914, allocations: 1.938 kB / 0.5127 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.396e-05/0.2915, allocations: 13.11 kB / 0.5127 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.2916, allocations: 37.27 kB / 0.5127 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001369/0.2918, allocations: 30.23 kB / 0.5127 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.2919, allocations: 126.4 kB / 0.5129 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.292, allocations: 24.02 kB / 0.5129 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.711e-05/0.2921, allocations: 59.58 kB / 0.5129 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.386e-05/0.2922, allocations: 48.23 kB / 0.513 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.2922, allocations: 10.06 kB / 0.513 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.893e-05/0.2922, allocations: 6.938 kB / 0.513 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.2922, allocations: 19.64 kB / 0.513 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.2923, allocations: 61.88 kB / 0.5131 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.2925, allocations: 123.4 kB / 0.5132 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2925, allocations: 4.812 kB / 0.5132 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2925, allocations: 0 / 0.5132 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.2925, allocations: 0 / 0.5132 GB, free: 11.52 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.00046/0.2929, allocations: 412.3 kB / 0.5136 GB, free: 11.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.293, allocations: 13.02 kB / 0.5136 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.293, allocations: 47.45 kB / 0.5137 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.2931, allocations: 14.72 kB / 0.5137 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.2932, allocations: 196.8 kB / 0.5139 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.2932, allocations: 9.922 kB / 0.5139 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.2933, allocations: 16.83 kB / 0.5139 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.2935, allocations: 125.6 kB / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2935, allocations: 9.656 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.2935, allocations: 6 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.2935, allocations: 1.938 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.2936, allocations: 63.89 kB / 0.5141 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006293/0.2942, allocations: 0.5334 MB / 0.5146 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.2944, allocations: 90.53 kB / 0.5147 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.046e-05/0.2944, allocations: 30.34 kB / 0.5147 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.2944, allocations: 0 / 0.5147 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.2945, allocations: 37.33 kB / 0.5148 GB, free: 9.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.2945, allocations: 4 kB / 0.5148 GB, free: 9.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005595/0.295, allocations: 297.6 kB / 0.515 GB, free: 9.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.2951, allocations: 82.83 kB / 0.5151 GB, free: 9.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.166e-05/0.2951, allocations: 124.9 kB / 0.5152 GB, free: 9.492 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.2951, allocations: 29.7 kB / 0.5153 GB, free: 9.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.2952, allocations: 122 kB / 0.5154 GB, free: 9.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.2952, allocations: 43.56 kB / 0.5154 GB, free: 9.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.2953, allocations: 26.53 kB / 0.5155 GB, free: 9.277 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.048e-05/0.2953, allocations: 325 kB / 0.5158 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.818e-05/0.2953, allocations: 21.2 kB / 0.5158 GB, free: 8.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.424e-05/0.2954, allocations: 87.05 kB / 0.5159 GB, free: 8.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.2955, allocations: 125 kB / 0.516 GB, free: 8.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2955, allocations: 1.375 kB / 0.516 GB, free: 8.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000258/0.2958, allocations: 171.6 kB / 0.5162 GB, free: 8.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.2958, allocations: 6.875 kB / 0.5162 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2958, allocations: 10.94 kB / 0.5162 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.296, allocations: 38.14 kB / 0.5162 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.194e-05/0.2961, allocations: 21.86 kB / 0.5162 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.2974, allocations: 2.741 MB / 0.5189 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.2975, allocations: 7.703 kB / 0.5189 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2975, allocations: 5.094 kB / 0.5189 GB, free: 5.695 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.214e-05/0.2976, allocations: 132.7 kB / 0.519 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.2977, allocations: 11.89 kB / 0.5191 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.2977, allocations: 13.91 kB / 0.5191 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2977, allocations: 1.5 kB / 0.5191 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2977, allocations: 5.172 kB / 0.5191 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2977, allocations: 0.8125 kB / 0.5191 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.2979, allocations: 196.5 kB / 0.5193 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2979, allocations: 0 / 0.5193 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.161e-05/0.298, allocations: 15.33 kB / 0.5193 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.2981, allocations: 40.98 kB / 0.5193 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.2981, allocations: 5.25 kB / 0.5193 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.2993, allocations: 2.726 MB / 0.522 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2993, allocations: 0 / 0.522 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.2997, allocations: 306.2 kB / 0.5223 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.2997, allocations: 88.41 kB / 0.5224 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.2997, allocations: 5.594 kB / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-05/0.2998, allocations: 1.594 kB / 0.5224 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.2998, allocations: 10.89 kB / 0.5224 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-06/0.2998, allocations: 2.938 kB / 0.5224 GB, free: 2.023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.674e-05/0.2999, allocations: 91.77 kB / 0.5225 GB, free: 1.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2999, allocations: 1.25 kB / 0.5225 GB, free: 1.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004332/0.3003, allocations: 35.47 kB / 0.5225 GB, free: 1.934 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004893/0.3008, allocations: 0.8532 MB / 0.5233 GB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004994/0.3013, allocations: 301.9 kB / 0.5236 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3013, allocations: 0 / 0.5236 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.3015, allocations: 256.9 kB / 0.5239 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.3021, allocations: 24.3 kB / 0.5239 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.3045, allocations: 1.971 MB / 0.5258 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.3048, allocations: 0.7084 MB / 0.5265 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.73e-05/0.3049, allocations: 8.875 kB / 0.5265 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.305, allocations: 24.53 kB / 0.5265 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.305, allocations: 0 / 0.5265 GB, free: 13.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.3406, allocations: 3.043 MB / 0.5295 GB, free: 10.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.87, allocations: 4.828 kB / 0.5295 GB, free: 10.74 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_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_Directions3.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J1.phi in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J1.phi from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! Error: Could not read variable J3.phi in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J3.phi from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.05996923299972]