Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.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.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",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.001491/0.001491, allocations: 104.1 kB / 16.4 MB, free: 6.5 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.001962/0.001962, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.499/1.499, 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.23/0.23, allocations: 43.52 MB / 314.1 MB, free: 456 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.001448/0.001448, allocations: 59.91 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1369, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.002975/0.1399, allocations: 1.85 MB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003452/0.1402, allocations: 147.5 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.593e-05/0.1403, allocations: 11.94 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.079e-05/0.1404, allocations: 15.8 kB / 0.4894 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.1405, allocations: 55.55 kB / 0.4894 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.1407, allocations: 35.94 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1409, allocations: 183.1 kB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.1411, allocations: 65.17 kB / 0.4897 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.996e-05/0.1412, allocations: 75.7 kB / 0.4898 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.1413, allocations: 79.64 kB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.1414, allocations: 12 kB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.875e-05/0.1414, allocations: 16 kB / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.392e-05/0.1414, allocations: 27.92 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.581e-05/0.1415, allocations: 87.59 kB / 0.49 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.1418, allocations: 179.4 kB / 0.4901 GB, free: 9.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1418, allocations: 0 / 0.4901 GB, free: 9.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1418, allocations: 0 / 0.4901 GB, free: 9.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1418, allocations: 0 / 0.4901 GB, free: 9.477 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006509/0.1424, allocations: 463.2 kB / 0.4906 GB, free: 8.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.1425, allocations: 11.89 kB / 0.4906 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.666e-05/0.1426, allocations: 50.73 kB / 0.4906 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.495e-05/0.1426, allocations: 16.75 kB / 0.4907 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.1428, allocations: 208.1 kB / 0.4908 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.1429, allocations: 8.703 kB / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.1429, allocations: 20.31 kB / 0.4909 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.1432, allocations: 170.1 kB / 0.491 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.1432, allocations: 11.84 kB / 0.4911 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.1433, allocations: 12 kB / 0.4911 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1433, allocations: 4 kB / 0.4911 GB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.1435, allocations: 83.94 kB / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.1444, allocations: 0.6072 MB / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.1446, allocations: 137.2 kB / 0.4919 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.464e-05/0.1447, allocations: 45.7 kB / 0.4919 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.1447, allocations: 8.125 kB / 0.4919 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1448, allocations: 42.48 kB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1448, allocations: 0 / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.00084/0.1456, allocations: 377.2 kB / 0.4923 GB, free: 6.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.1457, allocations: 81.09 kB / 0.4924 GB, free: 6.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1459, allocations: 134.1 kB / 0.4925 GB, free: 6.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.1459, allocations: 33.69 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.146, allocations: 128 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.146, allocations: 51.27 kB / 0.4927 GB, free: 6.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.1461, allocations: 37.7 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1462, allocations: 322.8 kB / 0.4931 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.1463, allocations: 39.92 kB / 0.4931 GB, free: 6.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.1464, allocations: 116.4 kB / 0.4932 GB, free: 5.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.1466, allocations: 148.5 kB / 0.4934 GB, free: 5.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1466, allocations: 4 kB / 0.4934 GB, free: 5.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003518/0.147, allocations: 223 kB / 0.4936 GB, free: 5.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.147, allocations: 4.469 kB / 0.4936 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.147, allocations: 7.984 kB / 0.4936 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002369/0.1472, allocations: 53.62 kB / 0.4936 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.1474, allocations: 31.98 kB / 0.4937 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.1497, allocations: 3.006 MB / 0.4966 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.115e-05/0.1498, allocations: 23.81 kB / 0.4966 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.1498, allocations: 4 kB / 0.4966 GB, free: 2.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.1499, allocations: 129.8 kB / 0.4968 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.845e-05/0.15, allocations: 11.91 kB / 0.4968 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.15, allocations: 20.64 kB / 0.4968 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.15, allocations: 4 kB / 0.4968 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.15, allocations: 4.062 kB / 0.4968 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.15, allocations: 4 kB / 0.4968 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.1503, allocations: 225.5 kB / 0.497 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1503, allocations: 0 / 0.497 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.1505, allocations: 31.92 kB / 0.497 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/0.1506, allocations: 45.69 kB / 0.4971 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1506, allocations: 3.938 kB / 0.4971 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.1528, allocations: 2.99 MB / 0.5 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1528, allocations: 160 / 0.5 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004273/0.1533, allocations: 372.4 kB / 0.5004 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.1533, allocations: 92.86 kB / 0.5005 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.1534, allocations: 8.047 kB / 0.5005 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.1535, allocations: 7.938 kB / 0.5005 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.1535, allocations: 15.98 kB / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.1535, allocations: 4 kB / 0.5005 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.295e-05/0.1536, allocations: 99.06 kB / 0.5006 GB, free: 13.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.896e-06/0.1536, allocations: 0 / 0.5006 GB, free: 13.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.154, allocations: 63.78 kB / 0.5006 GB, free: 13.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (inertia1.w,inertia2.phi,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006795/0.1547, allocations: 0.889 MB / 0.5015 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005352/0.1552, allocations: 365.5 kB / 0.5019 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1553, allocations: 0 / 0.5019 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.1556, allocations: 285.4 kB / 0.5021 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.1561, allocations: 28.17 kB / 0.5022 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.1587, allocations: 2.319 MB / 0.5044 GB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.1591, allocations: 0.7281 MB / 0.5051 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.541e-05/0.1591, allocations: 13.41 kB / 0.5052 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.1592, allocations: 39.42 kB / 0.5052 GB, free: 8.73 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1592, allocations: 0 / 0.5052 GB, free: 8.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.187, allocations: 3.812 MB / 0.5089 GB, free: 4.914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.455/9.642, allocations: 4 kB / 0.5089 GB, free: 4.91 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/ConnectionPossibilities/ConnectionPossibilities.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches