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.007322/0.007322, allocations: 101 kB / 15.87 MB, free: 6.309 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.001345/0.001345, allocations: 193.8 kB / 16.79 MB, free: 6.238 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.342/1.342, allocations: 205.1 MB / 222.6 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3008/0.3008, allocations: 43.5 MB / 313.5 MB, free: 8.582 MB / 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.001329/0.001329, allocations: 63.91 kB / 382.1 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 57.78 MB / 439.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.002733/0.1054, allocations: 1.91 MB / 441.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002526/0.1056, allocations: 151.4 kB / 442 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.937e-05/0.1057, allocations: 4 kB / 442 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.312e-05/0.1058, allocations: 15.84 kB / 442 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1059, allocations: 47.67 kB / 442 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001219/0.106, allocations: 31.92 kB / 442.1 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.1062, allocations: 175.1 kB / 442.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1063, allocations: 53.83 kB / 442.3 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.896e-05/0.1064, allocations: 63.73 kB / 442.4 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.437e-05/0.1065, allocations: 75.69 kB / 442.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.1065, allocations: 8 kB / 442.4 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.258e-05/0.1066, allocations: 12 kB / 442.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.672e-05/0.1066, allocations: 31.86 kB / 442.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.193e-05/0.1067, allocations: 75.66 kB / 442.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.1068, allocations: 179.6 kB / 442.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1068, allocations: 0 / 442.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.1069, allocations: 0 / 442.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1069, allocations: 0 / 442.7 MB, free: 11.9 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.0004961/0.1074, allocations: 455.2 kB / 443.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1074, allocations: 12.03 kB / 443.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.473e-05/0.1075, allocations: 50.73 kB / 443.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1075, allocations: 20.75 kB / 443.3 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1077, allocations: 200.1 kB / 443.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1077, allocations: 12.7 kB / 443.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.1077, allocations: 20.38 kB / 443.5 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.108, allocations: 170.1 kB / 443.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.108, allocations: 7.844 kB / 443.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.108, allocations: 4 kB / 443.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.108, allocations: 4 kB / 443.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.1082, allocations: 99.88 kB / 443.8 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007177/0.1089, allocations: 0.6149 MB / 444.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.1091, allocations: 125.4 kB / 444.5 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.665e-05/0.1092, allocations: 53.64 kB / 444.5 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1092, allocations: 4 kB / 444.6 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.1093, allocations: 34.5 kB / 444.6 MB, free: 9.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.1093, allocations: 4 kB / 444.6 MB, free: 9.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007033/0.11, allocations: 385.2 kB / 445 MB, free: 9.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.11, allocations: 81.11 kB / 445 MB, free: 9.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.067e-05/0.1101, allocations: 133.9 kB / 445.2 MB, free: 9.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1102, allocations: 29.7 kB / 445.2 MB, free: 9.133 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.1102, allocations: 127.9 kB / 445.3 MB, free: 9.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.618e-05/0.1103, allocations: 59.19 kB / 445.4 MB, free: 8.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.1103, allocations: 37.72 kB / 445.4 MB, free: 8.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.1104, allocations: 322.8 kB / 445.7 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.106e-05/0.1105, allocations: 39.92 kB / 445.8 MB, free: 8.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.1106, allocations: 108.4 kB / 445.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.1108, allocations: 156.5 kB / 446 MB, free: 8.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1108, allocations: 0 / 446 MB, free: 8.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000333/0.1111, allocations: 222.9 kB / 446.3 MB, free: 7.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1112, allocations: 4 kB / 446.3 MB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1112, allocations: 8.469 kB / 446.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.1114, allocations: 49.94 kB / 446.3 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.1115, allocations: 43.92 kB / 446.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.1134, allocations: 2.716 MB / 449.1 MB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.126e-05/0.1135, allocations: 19.75 kB / 449.1 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1135, allocations: 11.94 kB / 449.1 MB, free: 4.859 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 9.828e-05/0.1136, allocations: 137.9 kB / 449.2 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.527e-05/0.1137, allocations: 7.906 kB / 449.2 MB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.1137, allocations: 16.72 kB / 449.3 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.1137, allocations: 0 / 449.3 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1138, allocations: 4 kB / 449.3 MB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1138, allocations: 3.938 kB / 449.3 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.114, allocations: 237.5 kB / 449.5 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1141, allocations: 4.094 kB / 449.5 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.1142, allocations: 27.98 kB / 449.5 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001203/0.1143, allocations: 45.69 kB / 449.6 MB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1143, allocations: 15.98 kB / 449.6 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.1161, allocations: 2.708 MB / 452.3 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1161, allocations: 0 / 452.3 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.1165, allocations: 376.3 kB / 452.7 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.1165, allocations: 89.05 kB / 452.8 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1165, allocations: 15.98 kB / 452.8 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-05/0.1166, allocations: 0 / 452.8 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-05/0.1167, allocations: 11.98 kB / 452.8 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.1167, allocations: 4 kB / 452.8 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.145e-05/0.1167, allocations: 103.1 kB / 452.9 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1167, allocations: 4 kB / 452.9 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004156/0.1172, allocations: 55.84 kB / 452.9 MB, free: 0.6445 MB / 382.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.1504/0.2676, allocations: 0.9004 MB / 453.8 MB, free: 48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005184/0.2681, allocations: 353.8 kB / 454.2 MB, free: 47.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.2682, allocations: 0 / 454.2 MB, free: 47.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.2684, allocations: 284 kB / 454.5 MB, free: 47.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005601/0.269, allocations: 28.81 kB / 454.5 MB, free: 47.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.271, allocations: 2.38 MB / 456.9 MB, free: 45.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.2711, allocations: 0.7226 MB / 457.6 MB, free: 45.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.159e-05/0.2712, allocations: 14.08 kB / 457.6 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.2712, allocations: 40.59 kB / 457.7 MB, free: 45.16 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2712, allocations: 0 / 457.7 MB, free: 45.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8209/1.092, allocations: 3.497 MB / 461.2 MB, free: 44.72 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/1.092, allocations: 253.9 kB / 461.4 MB, free: 44.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/2.785, allocations: 0 / 461.4 MB, free: 44.45 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches