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.001307/0.001307, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.001491/0.001491, allocations: 215.4 kB / 22.99 MB, free: 4.602 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.432/1.432, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.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.226/0.226, allocations: 44.26 MB / 330.3 MB, free: 9.316 MB / 270.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.00229/0.00229, allocations: 72.45 kB / 467.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1208, allocations: 61.05 MB / 0.5161 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00301/0.1238, allocations: 1.616 MB / 0.5177 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003294/0.1242, allocations: 103.6 kB / 0.5178 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.292e-05/0.1242, allocations: 8 kB / 0.5178 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.899e-05/0.1243, allocations: 15.8 kB / 0.5178 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1244, allocations: 35.7 kB / 0.5179 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.1246, allocations: 27.95 kB / 0.5179 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.1247, allocations: 127.4 kB / 0.518 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1249, allocations: 21.56 kB / 0.518 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.544e-05/0.125, allocations: 51.84 kB / 0.5181 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.723e-05/0.1251, allocations: 43.78 kB / 0.5181 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.1251, allocations: 8 kB / 0.5181 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.79e-05/0.1252, allocations: 12 kB / 0.5181 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.1252, allocations: 27.92 kB / 0.5182 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.937e-05/0.1253, allocations: 55.72 kB / 0.5182 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.1255, allocations: 127.4 kB / 0.5184 GB, free: 4.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.1255, allocations: 4 kB / 0.5184 GB, free: 4.922 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1255, allocations: 0 / 0.5184 GB, free: 4.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.1255, allocations: 0 / 0.5184 GB, free: 4.922 MB / 398.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.0005601/0.1261, allocations: 322.2 kB / 0.5187 GB, free: 4.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1261, allocations: 12.03 kB / 0.5187 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.263e-05/0.1262, allocations: 46.73 kB / 0.5187 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.1262, allocations: 12.84 kB / 0.5187 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.1264, allocations: 138.4 kB / 0.5189 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1264, allocations: 4.609 kB / 0.5189 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.1265, allocations: 24.31 kB / 0.5189 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.1267, allocations: 129.5 kB / 0.519 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1267, allocations: 15.81 kB / 0.519 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1267, allocations: 4 kB / 0.519 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1267, allocations: 4 kB / 0.519 GB, free: 4.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.1269, allocations: 59.97 kB / 0.5191 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008008/0.1277, allocations: 479.6 kB / 0.5195 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.1278, allocations: 81.17 kB / 0.5196 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.647e-05/0.1279, allocations: 25.75 kB / 0.5197 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1279, allocations: 11.98 kB / 0.5197 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.1279, allocations: 34.5 kB / 0.5197 GB, free: 3.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.1279, allocations: 0 / 0.5197 GB, free: 3.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005707/0.1285, allocations: 147.2 kB / 0.5198 GB, free: 3.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1286, allocations: 77.11 kB / 0.5199 GB, free: 3.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.1287, allocations: 125.8 kB / 0.52 GB, free: 3.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.1287, allocations: 29.7 kB / 0.5201 GB, free: 2.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1288, allocations: 123.7 kB / 0.5202 GB, free: 2.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.1289, allocations: 35.73 kB / 0.5202 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.1289, allocations: 29.67 kB / 0.5202 GB, free: 2.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1291, allocations: 330.8 kB / 0.5206 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.26e-05/0.1291, allocations: 16 kB / 0.5206 GB, free: 2.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.1292, allocations: 96.44 kB / 0.5207 GB, free: 2.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.1294, allocations: 120.5 kB / 0.5208 GB, free: 2.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1294, allocations: 0 / 0.5208 GB, free: 2.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003003/0.1297, allocations: 171.7 kB / 0.5209 GB, free: 1.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1297, allocations: 12.03 kB / 0.521 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1297, allocations: 3.938 kB / 0.521 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.1299, allocations: 37.7 kB / 0.521 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.179e-05/0.13, allocations: 23.92 kB / 0.521 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.1323, allocations: 2.519 MB / 0.5235 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.1323, allocations: 15.89 kB / 0.5235 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.1323, allocations: 4 kB / 0.5235 GB, free: 15.12 MB / 414.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 0.0001167/0.1324, allocations: 125.8 kB / 0.5236 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.1325, allocations: 11.89 kB / 0.5236 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.743e-05/0.1325, allocations: 8.156 kB / 0.5236 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1325, allocations: 8 kB / 0.5236 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1325, allocations: 0 / 0.5236 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1325, allocations: 0 / 0.5236 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.1328, allocations: 164.7 kB / 0.5238 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1328, allocations: 48 / 0.5238 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.502e-05/0.1329, allocations: 19.92 kB / 0.5238 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.133, allocations: 41.64 kB / 0.5239 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.133, allocations: 3.984 kB / 0.5239 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.1351, allocations: 2.527 MB / 0.5263 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.1351, allocations: 3.938 kB / 0.5263 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.1354, allocations: 304.4 kB / 0.5266 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.1355, allocations: 7.891 kB / 0.5266 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.1355, allocations: 4.281 kB / 0.5266 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.991e-05/0.1356, allocations: 4 kB / 0.5266 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.1356, allocations: 12.03 kB / 0.5266 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.1356, allocations: 4 kB / 0.5267 GB, free: 11.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.066e-05/0.1357, allocations: 91.27 kB / 0.5267 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1357, allocations: 3.938 kB / 0.5267 GB, free: 11.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.136, allocations: 35.94 kB / 0.5268 GB, free: 11.45 MB / 414.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.0006738/0.1367, allocations: 0.8383 MB / 0.5276 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004649/0.1372, allocations: 301.3 kB / 0.5279 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1372, allocations: 0 / 0.5279 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.1375, allocations: 253.4 kB / 0.5281 GB, free: 9.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.138, allocations: 28.56 kB / 0.5282 GB, free: 9.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.1402, allocations: 1.986 MB / 0.5301 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.866e-05/0.1403, allocations: 93.62 kB / 0.5302 GB, free: 7.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.701e-05/0.1404, allocations: 8.969 kB / 0.5302 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.1404, allocations: 23.44 kB / 0.5302 GB, free: 7.668 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1404, allocations: 0 / 0.5302 GB, free: 7.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.1755, allocations: 3.63 MB / 0.5338 GB, free: 4.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/11.92, allocations: 7.797 kB / 0.5338 GB, free: 4.027 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.16513810865581]