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.001678/0.001678, allocations: 126.2 kB / 17.84 MB, free: 5.223 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.002049/0.002049, allocations: 203.8 kB / 20.79 MB, free: 2.281 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.504/1.504, allocations: 207.6 MB / 231.2 MB, free: 4.113 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.3265/0.3265, allocations: 44.24 MB / 327.3 MB, free: 6.691 MB / 254.1 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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="cs",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.002301/0.002301, allocations: 67.91 kB / 462.9 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2995, allocations: 61 MB / 0.5116 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002889/0.3024, allocations: 1.673 MB / 0.5133 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003028/0.3027, allocations: 107 kB / 0.5134 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.451e-05/0.3027, allocations: 2.188 kB / 0.5134 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.739e-05/0.3028, allocations: 12.95 kB / 0.5134 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.3029, allocations: 44.97 kB / 0.5134 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001366/0.303, allocations: 27.05 kB / 0.5134 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.3032, allocations: 125.8 kB / 0.5136 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3034, allocations: 31.59 kB / 0.5136 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.3035, allocations: 50.88 kB / 0.5136 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.936e-05/0.3035, allocations: 48.34 kB / 0.5137 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.3036, allocations: 9.312 kB / 0.5137 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.35e-05/0.3036, allocations: 11.66 kB / 0.5137 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.3036, allocations: 23.86 kB / 0.5137 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.59e-05/0.3037, allocations: 59.06 kB / 0.5138 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.3039, allocations: 122.8 kB / 0.5139 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3039, allocations: 0.9688 kB / 0.5139 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3039, allocations: 0 / 0.5139 GB, free: 11.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3039, allocations: 3.938 kB / 0.5139 GB, free: 11.35 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.0004857/0.3044, allocations: 408.7 kB / 0.5143 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3044, allocations: 13.45 kB / 0.5143 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.045e-05/0.3044, allocations: 2.641 kB / 0.5143 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.3045, allocations: 46.86 kB / 0.5144 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.128e-05/0.3045, allocations: 14.78 kB / 0.5144 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.3047, allocations: 194.3 kB / 0.5146 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3047, allocations: 8.891 kB / 0.5146 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.3047, allocations: 16.05 kB / 0.5146 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.305, allocations: 131.2 kB / 0.5147 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.305, allocations: 1.312 kB / 0.5147 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.305, allocations: 5.031 kB / 0.5147 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.305, allocations: 2.531 kB / 0.5147 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.3051, allocations: 63.64 kB / 0.5148 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006474/0.3058, allocations: 0.5465 MB / 0.5153 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.3059, allocations: 89.41 kB / 0.5154 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.3059, allocations: 22.16 kB / 0.5154 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.3059, allocations: 3.984 kB / 0.5154 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.306, allocations: 37.44 kB / 0.5155 GB, free: 9.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.306, allocations: 0 / 0.5155 GB, free: 9.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006052/0.3066, allocations: 305.9 kB / 0.5157 GB, free: 9.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.3066, allocations: 78.45 kB / 0.5158 GB, free: 9.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.94e-05/0.3067, allocations: 116.5 kB / 0.5159 GB, free: 9.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.3067, allocations: 31.23 kB / 0.516 GB, free: 9.297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.768e-05/0.3068, allocations: 132.2 kB / 0.5161 GB, free: 9.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3068, allocations: 28.28 kB / 0.5161 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.3068, allocations: 30.55 kB / 0.5161 GB, free: 9.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.977e-05/0.3069, allocations: 325.1 kB / 0.5165 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.543e-05/0.3069, allocations: 20.19 kB / 0.5165 GB, free: 8.785 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.623e-05/0.307, allocations: 94.88 kB / 0.5166 GB, free: 8.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.3071, allocations: 118.4 kB / 0.5167 GB, free: 8.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3071, allocations: 0 / 0.5167 GB, free: 8.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002919/0.3074, allocations: 173.2 kB / 0.5168 GB, free: 8.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3074, allocations: 13.41 kB / 0.5169 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3074, allocations: 3.281 kB / 0.5169 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.3076, allocations: 38.36 kB / 0.5169 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.491e-05/0.3077, allocations: 22.11 kB / 0.5169 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.3091, allocations: 2.736 MB / 0.5196 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.543e-05/0.3091, allocations: 12.11 kB / 0.5196 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.3092, allocations: 5.969 kB / 0.5196 GB, free: 5.535 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 8.048e-05/0.3092, allocations: 135.9 kB / 0.5197 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.3093, allocations: 12.11 kB / 0.5197 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.45e-05/0.3093, allocations: 9.375 kB / 0.5198 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.3093, allocations: 2.156 kB / 0.5198 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3093, allocations: 1.062 kB / 0.5198 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3093, allocations: 1.375 kB / 0.5198 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.3095, allocations: 195.2 kB / 0.5199 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3095, allocations: 5.594 kB / 0.52 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.769e-05/0.3096, allocations: 9.906 kB / 0.52 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-05/0.3097, allocations: 44.42 kB / 0.52 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.3097, allocations: 1.25 kB / 0.52 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.3109, allocations: 2.73 MB / 0.5227 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3109, allocations: 1.375 kB / 0.5227 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.3112, allocations: 309.9 kB / 0.523 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.952e-05/0.3112, allocations: 83.81 kB / 0.523 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.3112, allocations: 9.312 kB / 0.5231 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.094e-05/0.3113, allocations: 1.375 kB / 0.5231 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.395e-05/0.3114, allocations: 10.72 kB / 0.5231 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.3114, allocations: 2.75 kB / 0.5231 GB, free: 1.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.429e-05/0.3114, allocations: 100.9 kB / 0.5232 GB, free: 1.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3114, allocations: 4 kB / 0.5232 GB, free: 1.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003827/0.3118, allocations: 40.75 kB / 0.5232 GB, free: 1.754 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.000443/0.3122, allocations: 0.8375 MB / 0.524 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.3127, allocations: 300.2 kB / 0.5243 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3127, allocations: 1.375 kB / 0.5243 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.3129, allocations: 253.5 kB / 0.5246 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.3134, allocations: 35.12 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.3156, allocations: 1.973 MB / 0.5265 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.316, allocations: 0.7122 MB / 0.5272 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.462e-05/0.3161, allocations: 4.891 kB / 0.5272 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.3161, allocations: 31.42 kB / 0.5272 GB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3161, allocations: 0 / 0.5272 GB, free: 13.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.3458, allocations: 3.074 MB / 0.5302 GB, free: 10.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.26, allocations: 11.98 kB / 0.5303 GB, free: 10.58 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.281576309993397]