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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2443/0.2443, allocations: 46.09 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 82.98 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.153, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007531/0.1606, allocations: 5.783 MB / 485.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004577/0.1652, allocations: 2.36 MB / 488.3 MB, free: 13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.1664, allocations: 39.75 kB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007372/0.1672, allocations: 234 kB / 488.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008315/0.1681, allocations: 178.3 kB / 488.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.1694, allocations: 470.8 kB / 489.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001429/0.1709, allocations: 1.103 MB / 490.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009664/0.1718, allocations: 0.6068 MB / 490.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006144/0.1725, allocations: 378.6 kB / 491.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000593/0.1731, allocations: 394 kB / 491.6 MB, free: 9.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.1733, allocations: 92 kB / 491.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.1737, allocations: 159.9 kB / 491.9 MB, free: 9.355 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002369/0.1739, allocations: 211.3 kB / 492.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006108/0.1746, allocations: 477.6 kB / 492.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.1759, allocations: 1.23 MB / 493.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.1759, allocations: 7.938 kB / 493.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1759, allocations: 0 / 493.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.176, allocations: 0 / 493.8 MB, free: 7.438 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.002093/0.1781, allocations: 1.131 MB / 494.9 MB, free: 6.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1781, allocations: 8.031 kB / 494.9 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/0.1783, allocations: 147.9 kB / 495.1 MB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002806/0.1786, allocations: 115.7 kB / 495.2 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008191/0.1794, allocations: 0.5628 MB / 495.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.48e-05/0.1795, allocations: 66 kB / 495.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1796, allocations: 96 kB / 495.9 MB, free: 5.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.1812, allocations: 0.8877 MB / 496.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.83e-05/0.1813, allocations: 11.91 kB / 496.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.068e-05/0.1813, allocations: 36 kB / 496.8 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.1814, allocations: 24 kB / 496.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.1826, allocations: 0.5229 MB / 497.4 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005939/0.1886, allocations: 3.65 MB / 0.4893 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000725/0.1893, allocations: 222.2 kB / 0.4895 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.1895, allocations: 109.3 kB / 0.4896 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003248/0.1899, allocations: 251.3 kB / 0.4898 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1899, allocations: 34.56 kB / 0.4899 GB, free: 15.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.923e-06/0.1899, allocations: 0 / 0.4899 GB, free: 15.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002814/0.1928, allocations: 1.287 MB / 0.4911 GB, free: 13.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.1928, allocations: 63.28 kB / 0.4912 GB, free: 13.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005589/0.1934, allocations: 405.8 kB / 0.4916 GB, free: 13.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.1934, allocations: 33.64 kB / 0.4916 GB, free: 13.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.1937, allocations: 474.1 kB / 0.4921 GB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.708e-05/0.1939, allocations: 130.1 kB / 0.4922 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.194, allocations: 102.2 kB / 0.4923 GB, free: 12.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1942, allocations: 366.8 kB / 0.4926 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.1944, allocations: 109.1 kB / 0.4927 GB, free: 12.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.1947, allocations: 306.2 kB / 0.493 GB, free: 11.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006363/0.1954, allocations: 471.4 kB / 0.4935 GB, free: 11.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1954, allocations: 0 / 0.4935 GB, free: 11.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009152/0.1963, allocations: 0.501 MB / 0.494 GB, free: 10.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.1964, allocations: 8.844 kB / 0.494 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.1964, allocations: 7.984 kB / 0.494 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.1966, allocations: 40.84 kB / 0.494 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/0.197, allocations: 131.7 kB / 0.4942 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004275/0.1975, allocations: 0.5524 MB / 0.4947 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.1977, allocations: 24 kB / 0.4947 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.347e-05/0.1978, allocations: 28 kB / 0.4947 GB, free: 9.852 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.0003912/0.1982, allocations: 229.7 kB / 0.495 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.91e-05/0.1983, allocations: 55.28 kB / 0.495 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006376/0.1989, allocations: 323 kB / 0.4953 GB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.199, allocations: 4 kB / 0.4953 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.199, allocations: 3.984 kB / 0.4953 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.199, allocations: 4 kB / 0.4953 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.2006, allocations: 1.062 MB / 0.4964 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2007, allocations: 4.156 kB / 0.4964 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.201, allocations: 83.89 kB / 0.4965 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.2012, allocations: 32.78 kB / 0.4965 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.2012, allocations: 8 kB / 0.4965 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003482/0.2016, allocations: 0.5484 MB / 0.497 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.2016, allocations: 4.031 kB / 0.497 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008482/0.2025, allocations: 0.5596 MB / 0.4976 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.2026, allocations: 120.5 kB / 0.4977 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.2027, allocations: 11.98 kB / 0.4977 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.2028, allocations: 8 kB / 0.4977 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.2029, allocations: 23.91 kB / 0.4977 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.203, allocations: 19.94 kB / 0.4978 GB, free: 6.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.2033, allocations: 271.1 kB / 0.498 GB, free: 6.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2033, allocations: 0 / 0.498 GB, free: 6.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000618/0.2039, allocations: 128.2 kB / 0.4981 GB, free: 6.195 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.00128/0.2052, allocations: 1.104 MB / 0.4992 GB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008761/0.2061, allocations: 357 kB / 0.4996 GB, free: 4.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.2061, allocations: 4.062 kB / 0.4996 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.2064, allocations: 135.8 kB / 0.4997 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.207, allocations: 80.45 kB / 0.4998 GB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2573/0.4644, allocations: 4.884 MB / 0.5045 GB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006764/0.4651, allocations: 0.9639 MB / 0.5055 GB, free: 39.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002995/0.4654, allocations: 67.22 kB / 0.5055 GB, free: 39.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.4658, allocations: 292.2 kB / 0.5058 GB, free: 39.88 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4658, allocations: 0.875 kB / 0.5058 GB, free: 39.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04296/0.5088, allocations: 9.157 MB / 0.5148 GB, free: 38.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.58, allocations: 2.531 kB / 0.5148 GB, free: 38.3 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches