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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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: 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_3.2.3_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_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 107.6 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2419/0.2419, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB 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.001663/0.001663, allocations: 72.33 kB / 441.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1516, allocations: 57.8 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00836/0.16, allocations: 5.756 MB / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005194/0.1653, allocations: 2.326 MB / 0.4958 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.1668, allocations: 43.75 kB / 0.4958 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008855/0.1677, allocations: 226 kB / 0.496 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.1688, allocations: 178.3 kB / 0.4962 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.1706, allocations: 458.9 kB / 0.4966 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002004/0.1726, allocations: 1.122 MB / 0.4977 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.1738, allocations: 0.6224 MB / 0.4983 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.1745, allocations: 366.7 kB / 0.4987 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008663/0.1754, allocations: 390 kB / 0.4991 GB, free: 304 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.1756, allocations: 92 kB / 0.4991 GB, free: 212 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000385/0.176, allocations: 159.9 kB / 0.4993 GB, free: 52 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1762, allocations: 211.4 kB / 0.4995 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004534/0.1767, allocations: 477.6 kB / 0.5 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.1782, allocations: 1.269 MB / 0.5012 GB, free: 14.1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1782, allocations: 0 / 0.5012 GB, free: 14.1 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1782, allocations: 0 / 0.5012 GB, free: 14.1 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1782, allocations: 4 kB / 0.5012 GB, free: 14.1 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002281/0.1805, allocations: 1.123 MB / 0.5023 GB, free: 12.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.1806, allocations: 15.83 kB / 0.5023 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.1807, allocations: 103.7 kB / 0.5024 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1818, allocations: 0.5943 MB / 0.503 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/0.1819, allocations: 77.94 kB / 0.5031 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.182, allocations: 88 kB / 0.5031 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.1835, allocations: 0.8853 MB / 0.504 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.1836, allocations: 11.84 kB / 0.504 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/0.1836, allocations: 40 kB / 0.5041 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.1837, allocations: 20 kB / 0.5041 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.1846, allocations: 0.523 MB / 0.5046 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/0.1884, allocations: 3.603 MB / 0.5081 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/0.1889, allocations: 226.6 kB / 0.5083 GB, free: 6.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.1891, allocations: 104.8 kB / 0.5084 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002556/0.1894, allocations: 247.3 kB / 0.5087 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.1894, allocations: 34.56 kB / 0.5087 GB, free: 6.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 4.729e-06/0.1894, allocations: 0 / 0.5087 GB, free: 6.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002385/0.1918, allocations: 1.303 MB / 0.51 GB, free: 4.633 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.1919, allocations: 63.34 kB / 0.51 GB, free: 4.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.1923, allocations: 401.8 kB / 0.5104 GB, free: 4.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.1923, allocations: 29.7 kB / 0.5104 GB, free: 4.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/0.1926, allocations: 466.1 kB / 0.5109 GB, free: 3.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.523e-05/0.1927, allocations: 130.1 kB / 0.511 GB, free: 3.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.1929, allocations: 106.2 kB / 0.5111 GB, free: 3.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.193, allocations: 354.8 kB / 0.5114 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1933, allocations: 121.1 kB / 0.5116 GB, free: 2.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.1936, allocations: 306.2 kB / 0.5119 GB, free: 2.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.1942, allocations: 456.6 kB / 0.5123 GB, free: 2.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.1942, allocations: 4 kB / 0.5123 GB, free: 2.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007953/0.195, allocations: 0.517 MB / 0.5128 GB, free: 1.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.195, allocations: 8 kB / 0.5128 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.195, allocations: 4.031 kB / 0.5128 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002265/0.1953, allocations: 44.78 kB / 0.5129 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003742/0.1956, allocations: 123.8 kB / 0.513 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004369/0.1961, allocations: 0.5562 MB / 0.5135 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.1963, allocations: 23.98 kB / 0.5135 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.1963, allocations: 28 kB / 0.5136 GB, free: 0.6875 MB / 398.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.0002868/0.1966, allocations: 229.7 kB / 0.5138 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.1967, allocations: 55.28 kB / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005848/0.1973, allocations: 327.3 kB / 0.5141 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1973, allocations: 7.938 kB / 0.5142 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1973, allocations: 0 / 0.5142 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1974, allocations: 3.984 kB / 0.5142 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.1987, allocations: 1.05 MB / 0.5152 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1987, allocations: 4 kB / 0.5152 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.1991, allocations: 79.89 kB / 0.5153 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001337/0.1993, allocations: 36.94 kB / 0.5153 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.1993, allocations: 8 kB / 0.5153 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000396/0.1997, allocations: 0.5485 MB / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1997, allocations: 0 / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008024/0.2005, allocations: 0.564 MB / 0.5164 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.74e-05/0.2006, allocations: 120.5 kB / 0.5165 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.2007, allocations: 8 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.2008, allocations: 8 kB / 0.5165 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.984e-05/0.2009, allocations: 35.89 kB / 0.5166 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.2009, allocations: 8 kB / 0.5166 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.2012, allocations: 271.1 kB / 0.5168 GB, free: 13.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2012, allocations: 0 / 0.5168 GB, free: 13.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.2017, allocations: 124 kB / 0.5169 GB, free: 13.05 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.0001938/0.2019, allocations: 119.2 kB / 0.5171 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006385/0.2026, allocations: 337.1 kB / 0.5174 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2026, allocations: 0 / 0.5174 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.2029, allocations: 141.5 kB / 0.5175 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.2035, allocations: 80.72 kB / 0.5176 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.206, allocations: 1.616 MB / 0.5192 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.2065, allocations: 0.96 MB / 0.5201 GB, free: 9.727 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.2067, allocations: 56.53 kB / 0.5202 GB, free: 9.672 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.094e-05/0.2068, allocations: 39.44 kB / 0.5202 GB, free: 9.633 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2068, allocations: 3.938 kB / 0.5202 GB, free: 9.629 MB / 414.1 MB Notification: Performance of Templates: time 0.009456/0.2163, allocations: 4.249 MB / 0.5243 GB, free: 5.395 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches