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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.223/0.223, allocations: 46.1 MB / 344.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 72.25 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1567, allocations: 62.44 MB / 480 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008675/0.1654, allocations: 5.783 MB / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005125/0.1706, allocations: 2.356 MB / 488.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001437/0.1721, allocations: 39.75 kB / 488.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008632/0.173, allocations: 230 kB / 488.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001044/0.174, allocations: 182.3 kB / 488.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.1757, allocations: 474.9 kB / 489.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002002/0.1777, allocations: 1.099 MB / 490.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.1789, allocations: 0.6224 MB / 490.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007564/0.1797, allocations: 366.7 kB / 491.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008228/0.1805, allocations: 382.1 kB / 491.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000259/0.1808, allocations: 103.9 kB / 491.6 MB, free: 9.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005233/0.1813, allocations: 156 kB / 491.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.1817, allocations: 215.3 kB / 492 MB, free: 9.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007222/0.1824, allocations: 469.6 kB / 492.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001669/0.1841, allocations: 1.238 MB / 493.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1841, allocations: 3.938 kB / 493.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1841, allocations: 0 / 493.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.604e-05/0.1842, allocations: 8 kB / 493.7 MB, free: 7.559 MB / 366.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.002582/0.1868, allocations: 1.13 MB / 494.8 MB, free: 6.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.1868, allocations: 12.03 kB / 494.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004022/0.1872, allocations: 107.7 kB / 494.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008989/0.1881, allocations: 0.567 MB / 495.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.295e-05/0.1882, allocations: 66 kB / 495.6 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1884, allocations: 99.91 kB / 495.7 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.19, allocations: 0.8874 MB / 496.5 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.398e-05/0.1901, allocations: 15.84 kB / 496.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.651e-05/0.1902, allocations: 36 kB / 496.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.1902, allocations: 24 kB / 496.6 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1914, allocations: 0.5229 MB / 497.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003833/0.1952, allocations: 3.639 MB / 0.489 GB, free: 148 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006179/0.1958, allocations: 222.6 kB / 0.4893 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.196, allocations: 109.3 kB / 0.4894 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/0.1964, allocations: 255.2 kB / 0.4896 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.1964, allocations: 34.56 kB / 0.4896 GB, free: 15.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.873e-06/0.1964, allocations: 0 / 0.4896 GB, free: 15.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002417/0.1989, allocations: 1.279 MB / 0.4909 GB, free: 14.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.1989, allocations: 59.34 kB / 0.4909 GB, free: 14.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.1994, allocations: 409.8 kB / 0.4913 GB, free: 13.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1994, allocations: 29.7 kB / 0.4914 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.1997, allocations: 466.1 kB / 0.4918 GB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.927e-05/0.1998, allocations: 142 kB / 0.4919 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.1999, allocations: 106.2 kB / 0.492 GB, free: 12.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.2001, allocations: 358.8 kB / 0.4924 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.2003, allocations: 117.1 kB / 0.4925 GB, free: 12.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.2007, allocations: 302.2 kB / 0.4928 GB, free: 12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/0.2013, allocations: 467.4 kB / 0.4932 GB, free: 11.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2014, allocations: 0 / 0.4932 GB, free: 11.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007648/0.2021, allocations: 0.5204 MB / 0.4937 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.2022, allocations: 8.844 kB / 0.4937 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.2022, allocations: 4 kB / 0.4937 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000211/0.2024, allocations: 44.83 kB / 0.4938 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003633/0.2028, allocations: 123.8 kB / 0.4939 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000415/0.2032, allocations: 0.5523 MB / 0.4944 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.2034, allocations: 23.98 kB / 0.4945 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.2035, allocations: 28 kB / 0.4945 GB, free: 10.12 MB / 382.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.0003301/0.2038, allocations: 229.7 kB / 0.4947 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.2039, allocations: 55.28 kB / 0.4948 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006045/0.2045, allocations: 323 kB / 0.4951 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2045, allocations: 8.031 kB / 0.4951 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2045, allocations: 0 / 0.4951 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2045, allocations: 3.984 kB / 0.4951 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.2061, allocations: 1.055 MB / 0.4961 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2061, allocations: 160 / 0.4961 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000337/0.2064, allocations: 87.89 kB / 0.4962 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.2066, allocations: 32.78 kB / 0.4962 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.2066, allocations: 8 kB / 0.4962 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003313/0.2069, allocations: 0.5484 MB / 0.4968 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.207, allocations: 4.031 kB / 0.4968 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007878/0.2078, allocations: 0.5558 MB / 0.4973 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.2079, allocations: 124.5 kB / 0.4974 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.2079, allocations: 12 kB / 0.4975 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.2081, allocations: 11.98 kB / 0.4975 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.2081, allocations: 24 kB / 0.4975 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2082, allocations: 15.94 kB / 0.4975 GB, free: 6.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003128/0.2085, allocations: 271.1 kB / 0.4978 GB, free: 6.598 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2085, allocations: 3.938 kB / 0.4978 GB, free: 6.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005623/0.2091, allocations: 128 kB / 0.4979 GB, free: 6.469 MB / 382.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.0001919/0.2093, allocations: 115.2 kB / 0.498 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007202/0.21, allocations: 349.2 kB / 0.4983 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.21, allocations: 4.062 kB / 0.4983 GB, free: 6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002723/0.2103, allocations: 135.8 kB / 0.4985 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.2108, allocations: 88.84 kB / 0.4986 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.2137, allocations: 1.632 MB / 0.5001 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.2144, allocations: 0.9599 MB / 0.5011 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.2146, allocations: 64.48 kB / 0.5011 GB, free: 3.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.2147, allocations: 39.42 kB / 0.5012 GB, free: 3.016 MB / 382.1 MB Notification: Performance of SimCode: time 1.7e-07/0.2147, allocations: 0 / 0.5012 GB, free: 3.016 MB / 382.1 MB Notification: Performance of Templates: time 0.2205/0.4352, allocations: 4.125 MB / 0.5052 GB, free: 40.59 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches