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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 105.1 kB / 16.4 MB, free: 6.484 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.001226/0.001226, allocations: 192.1 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.465/1.465, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2142/0.2142, allocations: 43.52 MB / 314.1 MB, free: 472 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.001716/0.001716, allocations: 67.89 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1458, allocations: 57.79 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.009841/0.1557, allocations: 5.764 MB / 0.493 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006011/0.1617, allocations: 2.326 MB / 0.4953 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/0.1638, allocations: 35.81 kB / 0.4953 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1649, allocations: 226 kB / 0.4955 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.1661, allocations: 186.2 kB / 0.4957 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001698/0.1679, allocations: 462.9 kB / 0.4961 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002129/0.17, allocations: 1.114 MB / 0.4972 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.1713, allocations: 0.6146 MB / 0.4978 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007323/0.1721, allocations: 370.6 kB / 0.4982 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007398/0.1729, allocations: 398 kB / 0.4986 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002372/0.1731, allocations: 96 kB / 0.4987 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005168/0.1736, allocations: 151.9 kB / 0.4988 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.1739, allocations: 215.3 kB / 0.499 GB, free: 344 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007975/0.1748, allocations: 469.7 kB / 0.4995 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002215/0.177, allocations: 1.265 MB / 0.5007 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.177, allocations: 0 / 0.5007 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.409e-06/0.177, allocations: 4 kB / 0.5007 GB, free: 14.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.519e-05/0.1771, allocations: 7.938 kB / 0.5007 GB, free: 14.59 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.003175/0.1803, allocations: 1.119 MB / 0.5018 GB, free: 13.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.1804, allocations: 15.89 kB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000328/0.1807, allocations: 139.9 kB / 0.5019 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.181, allocations: 103.7 kB / 0.502 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.1823, allocations: 0.6018 MB / 0.5026 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.1e-05/0.1824, allocations: 70 kB / 0.5027 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.1826, allocations: 88 kB / 0.5028 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/0.1844, allocations: 0.8969 MB / 0.5037 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.957e-05/0.1845, allocations: 7.938 kB / 0.5037 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.1846, allocations: 36 kB / 0.5037 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.1846, allocations: 28 kB / 0.5037 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1858, allocations: 0.523 MB / 0.5042 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.1903, allocations: 3.603 MB / 0.5078 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.191, allocations: 218.7 kB / 0.508 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.1912, allocations: 104.8 kB / 0.5081 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002667/0.1914, allocations: 247.3 kB / 0.5083 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.1915, allocations: 34.56 kB / 0.5083 GB, free: 6.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.1915, allocations: 0 / 0.5083 GB, free: 6.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002776/0.1943, allocations: 1.307 MB / 0.5096 GB, free: 4.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.1943, allocations: 59.34 kB / 0.5097 GB, free: 4.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.1949, allocations: 405.8 kB / 0.5101 GB, free: 4.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.1949, allocations: 29.7 kB / 0.5101 GB, free: 4.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.1952, allocations: 466.1 kB / 0.5105 GB, free: 4.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1954, allocations: 142 kB / 0.5107 GB, free: 3.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.1955, allocations: 98.16 kB / 0.5108 GB, free: 3.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.1957, allocations: 358.8 kB / 0.5111 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.196, allocations: 113.1 kB / 0.5112 GB, free: 3.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003477/0.1964, allocations: 318.2 kB / 0.5115 GB, free: 2.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006269/0.197, allocations: 444.7 kB / 0.5119 GB, free: 2.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.197, allocations: 4 kB / 0.5119 GB, free: 2.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008714/0.1979, allocations: 0.5131 MB / 0.5124 GB, free: 1.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.1979, allocations: 12 kB / 0.5124 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.1979, allocations: 8 kB / 0.5125 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.1982, allocations: 40.83 kB / 0.5125 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.1986, allocations: 127.7 kB / 0.5126 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004384/0.199, allocations: 0.5563 MB / 0.5132 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.1993, allocations: 19.94 kB / 0.5132 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.1994, allocations: 36.06 kB / 0.5132 GB, free: 1.027 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.0003497/0.1998, allocations: 225.6 kB / 0.5134 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.1999, allocations: 55.28 kB / 0.5135 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006267/0.2005, allocations: 323.2 kB / 0.5138 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2005, allocations: 7.984 kB / 0.5138 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2006, allocations: 8 kB / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2006, allocations: 0 / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.2023, allocations: 1.05 MB / 0.5148 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.2023, allocations: 160 / 0.5148 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.2027, allocations: 87.89 kB / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.2029, allocations: 32.78 kB / 0.5149 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.2029, allocations: 11.98 kB / 0.515 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003768/0.2033, allocations: 0.5406 MB / 0.5155 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.2033, allocations: 8.016 kB / 0.5155 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009053/0.2042, allocations: 0.5601 MB / 0.516 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.2044, allocations: 120.5 kB / 0.5162 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/0.2045, allocations: 15.98 kB / 0.5162 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.2047, allocations: 8 kB / 0.5162 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.2048, allocations: 27.91 kB / 0.5162 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.2048, allocations: 8 kB / 0.5162 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003757/0.2052, allocations: 271.1 kB / 0.5165 GB, free: 13.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2052, allocations: 0 / 0.5165 GB, free: 13.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006443/0.2058, allocations: 124 kB / 0.5166 GB, free: 13.39 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.001291/0.2071, allocations: 1.105 MB / 0.5177 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008011/0.208, allocations: 333.3 kB / 0.518 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.208, allocations: 4.062 kB / 0.518 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.2083, allocations: 143.8 kB / 0.5181 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.2088, allocations: 76.67 kB / 0.5182 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007622/0.2165, allocations: 4.83 MB / 0.5229 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/0.2174, allocations: 0.96 MB / 0.5239 GB, free: 5.602 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003042/0.2178, allocations: 56.48 kB / 0.5239 GB, free: 5.543 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005372/0.2183, allocations: 295.3 kB / 0.5242 GB, free: 5.254 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2183, allocations: 0 / 0.5242 GB, free: 5.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.321/0.5393, allocations: 9.477 MB / 0.5334 GB, free: 39.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.47, allocations: 8.719 kB / 0.5335 GB, free: 39.82 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) 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) Reference file matches