Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.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.001747/0.001747, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002233/0.002233, allocations: 219.1 kB / 22.99 MB, free: 4.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.443/1.443, 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.2254/0.2254, allocations: 44.27 MB / 330.4 MB, free: 9.301 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",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.003817/0.003817, allocations: 75.88 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1529, allocations: 61.05 MB / 0.5161 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007977/0.1609, allocations: 5.129 MB / 0.5211 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004693/0.1656, allocations: 2.229 MB / 0.5233 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006504/0.1662, allocations: 59.5 kB / 0.5234 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.1667, allocations: 226 kB / 0.5236 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004381/0.1672, allocations: 174.3 kB / 0.5238 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1684, allocations: 474.9 kB / 0.5242 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.1697, allocations: 1.099 MB / 0.5253 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007266/0.1704, allocations: 406 kB / 0.5257 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004615/0.1709, allocations: 374.7 kB / 0.526 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.1713, allocations: 342 kB / 0.5264 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.1714, allocations: 99.94 kB / 0.5265 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003387/0.1718, allocations: 159.9 kB / 0.5266 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.172, allocations: 211.3 kB / 0.5268 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004282/0.1724, allocations: 378.1 kB / 0.5272 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.1741, allocations: 1.284 MB / 0.5284 GB, free: 10.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1741, allocations: 0 / 0.5284 GB, free: 10.53 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1741, allocations: 0 / 0.5284 GB, free: 10.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.1742, allocations: 4 kB / 0.5284 GB, free: 10.52 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001651/0.1758, allocations: 1.074 MB / 0.5295 GB, free: 9.418 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1759, allocations: 8.031 kB / 0.5295 GB, free: 9.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001715/0.176, allocations: 147.8 kB / 0.5296 GB, free: 9.258 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.1762, allocations: 108.3 kB / 0.5297 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009962/0.1772, allocations: 0.5107 MB / 0.5302 GB, free: 8.613 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.836e-05/0.1772, allocations: 78 kB / 0.5303 GB, free: 8.535 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1774, allocations: 87.95 kB / 0.5304 GB, free: 8.449 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.1791, allocations: 0.8892 MB / 0.5313 GB, free: 7.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.035e-05/0.1792, allocations: 7.938 kB / 0.5313 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.1792, allocations: 40 kB / 0.5313 GB, free: 7.453 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.1793, allocations: 20 kB / 0.5313 GB, free: 7.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.1803, allocations: 0.5307 MB / 0.5318 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004323/0.1847, allocations: 3.318 MB / 0.5351 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.1852, allocations: 211.1 kB / 0.5353 GB, free: 3.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.1854, allocations: 88.83 kB / 0.5354 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.1856, allocations: 23.98 kB / 0.5354 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.1856, allocations: 38.5 kB / 0.5354 GB, free: 3.062 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.755e-06/0.1856, allocations: 3.938 kB / 0.5354 GB, free: 3.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002568/0.1882, allocations: 1.162 MB / 0.5366 GB, free: 1.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.1882, allocations: 59.34 kB / 0.5366 GB, free: 1.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.1887, allocations: 409.8 kB / 0.537 GB, free: 1.367 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.1887, allocations: 29.7 kB / 0.537 GB, free: 1.332 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.1892, allocations: 487.5 kB / 0.5375 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.1893, allocations: 138.8 kB / 0.5376 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.1895, allocations: 98.23 kB / 0.5377 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002827/0.1898, allocations: 366.8 kB / 0.5381 GB, free: 244 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.19, allocations: 113.3 kB / 0.5382 GB, free: 132 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2522/0.4422, allocations: 309 kB / 0.5385 GB, free: 28.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/0.4429, allocations: 449.4 kB / 0.5389 GB, free: 27.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4429, allocations: 2.656 kB / 0.5389 GB, free: 27.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008957/0.4438, allocations: 0.5159 MB / 0.5394 GB, free: 27.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4438, allocations: 8.828 kB / 0.5394 GB, free: 27.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.4438, allocations: 7.438 kB / 0.5394 GB, free: 27.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.444, allocations: 36.77 kB / 0.5395 GB, free: 27.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.4444, allocations: 135.5 kB / 0.5396 GB, free: 27.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002754/0.4447, allocations: 0.5537 MB / 0.5401 GB, free: 27.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.4449, allocations: 17.95 kB / 0.5402 GB, free: 27.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.4449, allocations: 27.22 kB / 0.5402 GB, free: 27.35 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003212/0.4453, allocations: 232.2 kB / 0.5404 GB, free: 27.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.665e-05/0.4453, allocations: 50.98 kB / 0.5404 GB, free: 27.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.4459, allocations: 331.3 kB / 0.5408 GB, free: 27.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4459, allocations: 6.688 kB / 0.5408 GB, free: 27.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4459, allocations: 4.891 kB / 0.5408 GB, free: 27.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.4459, allocations: 1.312 kB / 0.5408 GB, free: 27.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.4473, allocations: 0.9802 MB / 0.5417 GB, free: 26.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4473, allocations: 2.812 kB / 0.5417 GB, free: 26.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.4476, allocations: 80.33 kB / 0.5418 GB, free: 26.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.4477, allocations: 33.5 kB / 0.5418 GB, free: 26.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.4478, allocations: 10.05 kB / 0.5419 GB, free: 26.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002275/0.448, allocations: 0.5553 MB / 0.5424 GB, free: 26.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.448, allocations: 2.906 kB / 0.5424 GB, free: 26.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000693/0.4487, allocations: 0.5703 MB / 0.543 GB, free: 26.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.4488, allocations: 40.88 kB / 0.543 GB, free: 26.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.4488, allocations: 9.047 kB / 0.543 GB, free: 26.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.449, allocations: 8.156 kB / 0.543 GB, free: 26.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.109e-05/0.4491, allocations: 26.52 kB / 0.543 GB, free: 26.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.4491, allocations: 15.2 kB / 0.543 GB, free: 26.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002865/0.4494, allocations: 270.7 kB / 0.5433 GB, free: 25.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4494, allocations: 0 / 0.5433 GB, free: 25.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000551/0.4499, allocations: 128 kB / 0.5434 GB, free: 25.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009642/0.4509, allocations: 1.117 MB / 0.5445 GB, free: 25.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006359/0.4515, allocations: 313.3 kB / 0.5448 GB, free: 24.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4515, allocations: 2.047 kB / 0.5448 GB, free: 24.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.4518, allocations: 136 kB / 0.545 GB, free: 24.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005228/0.4523, allocations: 85.12 kB / 0.545 GB, free: 24.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/0.4579, allocations: 4.85 MB / 0.5498 GB, free: 21.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.4584, allocations: 368.6 kB / 0.5501 GB, free: 21.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.4586, allocations: 55.73 kB / 0.5502 GB, free: 21.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.459, allocations: 297.7 kB / 0.5505 GB, free: 21.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.459, allocations: 4 kB / 0.5505 GB, free: 21.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06697/0.5259, allocations: 9.991 MB / 0.5602 GB, free: 19.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.71, allocations: 5.344 kB / 0.5602 GB, free: 19.39 MB / 414.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.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: 16.66192824440077]