Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009268/0.0009268, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000823/0.000823, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8752/0.8752, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2442/0.2442, allocations: 34.24 MB / 294.8 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 442.1 MB, free: 1.562 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.691e-05/1.83e-05, allocations: 2.281 kB / 442.1 MB, free: 1.559 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.1631/0.1632, allocations: 5.14 MB / 447.3 MB, free: 41.03 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.1662, allocations: 2.257 MB / 449.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005896/0.1668, allocations: 58.53 kB / 449.6 MB, free: 40.04 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003792/0.1672, allocations: 236.7 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.1675, allocations: 186 kB / 450 MB, free: 39.74 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009618/0.1685, allocations: 476.6 kB / 450.5 MB, free: 39.47 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007801/0.1693, allocations: 1.144 MB / 451.6 MB, free: 38.86 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000431/0.1697, allocations: 401.6 kB / 452 MB, free: 38.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004769/0.1702, allocations: 0.5611 MB / 452.6 MB, free: 38.38 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.1704, allocations: 274.2 kB / 452.8 MB, free: 38.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.498e-05/0.1705, allocations: 93.38 kB / 452.9 MB, free: 38.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1707, allocations: 159.2 kB / 453.1 MB, free: 38.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.1708, allocations: 220.9 kB / 453.3 MB, free: 38.1 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.171, allocations: 307.2 kB / 453.6 MB, free: 37.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007863/0.1718, allocations: 1.287 MB / 454.9 MB, free: 37.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1718, allocations: 0 / 454.9 MB, free: 37.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1718, allocations: 0 / 454.9 MB, free: 37.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1718, allocations: 4 kB / 454.9 MB, free: 37.43 MB / 410.7 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.0009407/0.1727, allocations: 1.072 MB / 456 MB, free: 36.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1728, allocations: 8.219 kB / 456 MB, free: 36.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.078e-05/0.1729, allocations: 147.2 kB / 456.1 MB, free: 36.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.173, allocations: 117.4 kB / 456.2 MB, free: 36.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.1736, allocations: 0.5233 MB / 456.7 MB, free: 36.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/0.1737, allocations: 73.28 kB / 456.8 MB, free: 36.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.15e-05/0.1737, allocations: 91.69 kB / 456.9 MB, free: 36.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008668/0.1746, allocations: 0.8814 MB / 457.8 MB, free: 35.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.1746, allocations: 10.67 kB / 457.8 MB, free: 35.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.1747, allocations: 42.84 kB / 457.8 MB, free: 35.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.1747, allocations: 24.66 kB / 457.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006194/0.1753, allocations: 0.5205 MB / 458.4 MB, free: 35.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.1772, allocations: 3.318 MB / 461.7 MB, free: 32.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.1776, allocations: 209.3 kB / 461.9 MB, free: 32.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1777, allocations: 92.53 kB / 462 MB, free: 32.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.1778, allocations: 19.92 kB / 462 MB, free: 32.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/0.1778, allocations: 36.94 kB / 462.1 MB, free: 32.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.1778, allocations: 0 / 462.1 MB, free: 32.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.001471/0.1793, allocations: 1.156 MB / 463.2 MB, free: 31.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.1793, allocations: 57.95 kB / 463.3 MB, free: 31.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.1796, allocations: 413.5 kB / 463.7 MB, free: 31.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1796, allocations: 29.7 kB / 463.7 MB, free: 31.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1797, allocations: 484.2 kB / 464.2 MB, free: 31.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.014e-05/0.1798, allocations: 134.3 kB / 464.3 MB, free: 31.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.461e-05/0.1798, allocations: 101.9 kB / 464.4 MB, free: 31.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.058e-05/0.1799, allocations: 363.6 kB / 464.8 MB, free: 30.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.18, allocations: 117.6 kB / 464.9 MB, free: 30.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.1802, allocations: 304.6 kB / 465.2 MB, free: 30.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003174/0.1805, allocations: 465.5 kB / 465.6 MB, free: 30.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1805, allocations: 0 / 465.6 MB, free: 30.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004558/0.181, allocations: 0.5129 MB / 466.1 MB, free: 29.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.181, allocations: 13.34 kB / 466.1 MB, free: 29.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.181, allocations: 5.75 kB / 466.2 MB, free: 29.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/0.1811, allocations: 40.83 kB / 466.2 MB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1813, allocations: 128.7 kB / 466.3 MB, free: 29.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002291/0.1816, allocations: 0.5559 MB / 466.9 MB, free: 29.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1817, allocations: 20.38 kB / 466.9 MB, free: 29.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.1817, allocations: 28.05 kB / 466.9 MB, free: 29.26 MB / 410.7 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.0001812/0.1819, allocations: 229.8 kB / 467.1 MB, free: 29.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.1819, allocations: 57.17 kB / 467.2 MB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.1823, allocations: 329.7 kB / 467.5 MB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1823, allocations: 3.188 kB / 467.5 MB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1823, allocations: 0 / 467.5 MB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1823, allocations: 3.188 kB / 467.5 MB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008697/0.1832, allocations: 0.9897 MB / 468.5 MB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1832, allocations: 3.938 kB / 468.5 MB, free: 28.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.1834, allocations: 82.58 kB / 468.6 MB, free: 28.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.379e-05/0.1835, allocations: 31.86 kB / 468.6 MB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.1835, allocations: 7.375 kB / 468.6 MB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001708/0.1837, allocations: 0.559 MB / 469.2 MB, free: 27.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1837, allocations: 3.219 kB / 469.2 MB, free: 27.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.1841, allocations: 0.5595 MB / 469.8 MB, free: 27.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.1841, allocations: 36.81 kB / 469.8 MB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.1841, allocations: 7.125 kB / 469.8 MB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.676e-05/0.1842, allocations: 13.98 kB / 469.8 MB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.1843, allocations: 24.91 kB / 469.8 MB, free: 27.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1843, allocations: 14.22 kB / 469.9 MB, free: 27.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.1844, allocations: 277.6 kB / 470.1 MB, free: 27.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1844, allocations: 0 / 470.1 MB, free: 27.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003564/0.1848, allocations: 124.3 kB / 470.3 MB, free: 27.18 MB / 410.7 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.0005855/0.1854, allocations: 1.119 MB / 471.4 MB, free: 26.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003742/0.1858, allocations: 316.2 kB / 471.7 MB, free: 26.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1858, allocations: 4.062 kB / 471.7 MB, free: 26.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.1859, allocations: 135.9 kB / 471.8 MB, free: 26.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.1863, allocations: 89.89 kB / 471.9 MB, free: 26.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003706/0.19, allocations: 4.664 MB / 476.6 MB, free: 23.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.1902, allocations: 367.9 kB / 476.9 MB, free: 22.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.1904, allocations: 62.3 kB / 477 MB, free: 22.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.1906, allocations: 293.5 kB / 477.3 MB, free: 22.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1906, allocations: 0 / 477.3 MB, free: 22.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.2154, allocations: 10.15 MB / 487.4 MB, free: 20.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.026, allocations: 8.234 kB / 487.4 MB, free: 20.82 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 9.94045918341726]