Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 113.9 kB / 17.13 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 191.7 kB / 20.07 MB, free: 2.984 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.511/1.511, allocations: 207.6 MB / 230.5 MB, free: 4.027 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.3629/0.3629, allocations: 44.23 MB / 326.5 MB, free: 6.812 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 63.91 kB / 462.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3124, allocations: 60.99 MB / 0.5109 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003354/0.3158, allocations: 2.859 MB / 0.5137 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3168, allocations: 0.7391 MB / 0.5144 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.317, allocations: 10.81 kB / 0.5144 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.3172, allocations: 52.94 kB / 0.5145 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.3173, allocations: 130 kB / 0.5146 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.3176, allocations: 94.56 kB / 0.5147 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.318, allocations: 429.2 kB / 0.5151 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.3182, allocations: 108 kB / 0.5152 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.3184, allocations: 175.1 kB / 0.5154 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.3186, allocations: 175.4 kB / 0.5155 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.203e-05/0.3186, allocations: 33.25 kB / 0.5156 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.856e-05/0.3187, allocations: 31.72 kB / 0.5156 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.882e-05/0.3187, allocations: 78.91 kB / 0.5157 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.3189, allocations: 200.8 kB / 0.5159 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.3193, allocations: 429.8 kB / 0.5163 GB, free: 9.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3193, allocations: 0 / 0.5163 GB, free: 9.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3193, allocations: 0 / 0.5163 GB, free: 9.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.3193, allocations: 0 / 0.5163 GB, free: 9.141 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.000824/0.3201, allocations: 0.656 MB / 0.5169 GB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3201, allocations: 13.48 kB / 0.5169 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.3202, allocations: 73.72 kB / 0.517 GB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.612e-05/0.3203, allocations: 42.7 kB / 0.517 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.3206, allocations: 280.2 kB / 0.5173 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3206, allocations: 31.12 kB / 0.5173 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.3206, allocations: 46.45 kB / 0.5174 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.3211, allocations: 395 kB / 0.5178 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.3211, allocations: 15.94 kB / 0.5178 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.3212, allocations: 16 kB / 0.5178 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.3212, allocations: 8 kB / 0.5178 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.3215, allocations: 219.7 kB / 0.518 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.3231, allocations: 1.723 MB / 0.5197 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.3234, allocations: 258.3 kB / 0.5199 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.3236, allocations: 86.08 kB / 0.52 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.3236, allocations: 15.92 kB / 0.52 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.3236, allocations: 42.5 kB / 0.5201 GB, free: 5.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.3236, allocations: 0 / 0.5201 GB, free: 5.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0005649/0.3242, allocations: 269.5 kB / 0.5203 GB, free: 4.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.3242, allocations: 221.5 kB / 0.5205 GB, free: 4.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.3244, allocations: 270.9 kB / 0.5208 GB, free: 4.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3244, allocations: 33.7 kB / 0.5208 GB, free: 4.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.446e-05/0.3245, allocations: 248 kB / 0.5211 GB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.3246, allocations: 119.1 kB / 0.5212 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.199e-05/0.3246, allocations: 98.3 kB / 0.5213 GB, free: 3.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.3247, allocations: 350.8 kB / 0.5216 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.3249, allocations: 97.27 kB / 0.5217 GB, free: 3.496 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.3251, allocations: 424.8 kB / 0.5221 GB, free: 2.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.3255, allocations: 0.5668 MB / 0.5227 GB, free: 2.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.3255, allocations: 4 kB / 0.5227 GB, free: 2.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006307/0.3262, allocations: 0.5288 MB / 0.5232 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3262, allocations: 8 kB / 0.5232 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3262, allocations: 12 kB / 0.5232 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.3262, allocations: 20 kB / 0.5232 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.3266, allocations: 144.4 kB / 0.5234 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.3266, allocations: 27.92 kB / 0.5234 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.3269, allocations: 71.5 kB / 0.5234 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.3269, allocations: 32 kB / 0.5235 GB, free: 1.348 MB / 382.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.0001218/0.327, allocations: 181.5 kB / 0.5237 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.3272, allocations: 39.84 kB / 0.5237 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.634e-05/0.3272, allocations: 33.78 kB / 0.5237 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3272, allocations: 4 kB / 0.5237 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.3272, allocations: 4 kB / 0.5237 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3272, allocations: 7.984 kB / 0.5237 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.3283, allocations: 0.6476 MB / 0.5244 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3283, allocations: 4 kB / 0.5244 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.3287, allocations: 83.89 kB / 0.5245 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3287, allocations: 4 kB / 0.5245 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.3287, allocations: 16.05 kB / 0.5245 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3287, allocations: 7.938 kB / 0.5245 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3287, allocations: 0 / 0.5245 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007573/0.3295, allocations: 0.8423 MB / 0.5253 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/0.3296, allocations: 104.9 kB / 0.5254 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.3296, allocations: 11.94 kB / 0.5254 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.3299, allocations: 15.98 kB / 0.5254 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.33, allocations: 23.92 kB / 0.5255 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.33, allocations: 11.98 kB / 0.5255 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.3302, allocations: 186 kB / 0.5256 GB, free: 15.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3302, allocations: 0 / 0.5256 GB, free: 15.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007339/0.3309, allocations: 99.83 kB / 0.5257 GB, free: 14.92 MB / 398.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.001155/0.3321, allocations: 1.392 MB / 0.5271 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005724/0.3327, allocations: 277 kB / 0.5274 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3327, allocations: 0 / 0.5274 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.3328, allocations: 93.27 kB / 0.5274 GB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009801/0.3338, allocations: 68.91 kB / 0.5275 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006306/0.3401, allocations: 4.92 MB / 0.5323 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.3406, allocations: 0.8105 MB / 0.5331 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.3408, allocations: 43.25 kB / 0.5331 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.3409, allocations: 119.4 kB / 0.5333 GB, free: 6.711 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3409, allocations: 0 / 0.5333 GB, free: 6.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.033/0.3739, allocations: 6.649 MB / 0.5398 GB, free: 60 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.874/9.248, allocations: 17.55 kB / 0.5398 GB, free: 48 kB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 12.235699396580458]