Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.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.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002583, allocations: 4 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1138, allocations: 63.57 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.00221/0.1161, allocations: 1.573 MB / 484.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004817/0.1166, allocations: 143.5 kB / 484.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.1168, allocations: 0 / 484.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.602e-05/0.1169, allocations: 19.84 kB / 484.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.1171, allocations: 51.61 kB / 485 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.1173, allocations: 31.98 kB / 485 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000236/0.1175, allocations: 179.1 kB / 485.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.1177, allocations: 49.83 kB / 485.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1179, allocations: 59.73 kB / 485.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.118, allocations: 63.7 kB / 485.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.118, allocations: 8 kB / 485.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.115e-05/0.1181, allocations: 12 kB / 485.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.564e-05/0.1181, allocations: 31.84 kB / 485.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1182, allocations: 101.3 kB / 485.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.1184, allocations: 163.6 kB / 485.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1185, allocations: 0 / 485.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1185, allocations: 0 / 485.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1185, allocations: 4 kB / 485.7 MB, free: 1.57 MB / 350.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.0006086/0.1191, allocations: 435.3 kB / 486.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.1192, allocations: 8.875 kB / 486.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.371e-05/0.1192, allocations: 50.73 kB / 486.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.336e-05/0.1193, allocations: 16.75 kB / 486.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.1195, allocations: 204.1 kB / 486.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.1195, allocations: 16.64 kB / 486.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.1196, allocations: 16.38 kB / 486.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1199, allocations: 170.2 kB / 486.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1199, allocations: 7.844 kB / 486.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.1199, allocations: 16 kB / 486.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1199, allocations: 7.984 kB / 486.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.1201, allocations: 83.89 kB / 486.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009069/0.121, allocations: 0.6151 MB / 487.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.1213, allocations: 129.2 kB / 487.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.886e-05/0.1213, allocations: 53.64 kB / 487.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.1214, allocations: 0 / 487.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1214, allocations: 42.56 kB / 487.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.1214, allocations: 0 / 487.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.000823/0.1222, allocations: 381.4 kB / 487.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.1223, allocations: 77.11 kB / 487.9 MB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1224, allocations: 134 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1225, allocations: 25.7 kB / 488.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.33e-05/0.1225, allocations: 136 kB / 488.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.031e-05/0.1226, allocations: 59.11 kB / 488.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.1226, allocations: 25.7 kB / 488.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1228, allocations: 322.8 kB / 488.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.524e-05/0.1228, allocations: 35.98 kB / 488.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.123, allocations: 104.6 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.1232, allocations: 161 kB / 488.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1232, allocations: 0 / 488.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003769/0.1236, allocations: 226.9 kB / 489.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1236, allocations: 4 kB / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1236, allocations: 4.25 kB / 489.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002222/0.1238, allocations: 53.69 kB / 489.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.124, allocations: 35.92 kB / 489.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.126, allocations: 2.721 MB / 492 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.023e-05/0.1261, allocations: 19.88 kB / 492 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.1261, allocations: 4 kB / 492 MB, free: 10.58 MB / 366.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.0001097/0.1262, allocations: 133.7 kB / 492.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.1263, allocations: 19.81 kB / 492.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.1263, allocations: 20.8 kB / 492.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1263, allocations: 4 kB / 492.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1263, allocations: 0 / 492.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1264, allocations: 0 / 492.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.1266, allocations: 233.5 kB / 492.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1267, allocations: 3.984 kB / 492.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1268, allocations: 24 kB / 492.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.1269, allocations: 45.69 kB / 492.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.127, allocations: 0 / 492.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.1287, allocations: 2.731 MB / 495.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1288, allocations: 0 / 495.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003851/0.1292, allocations: 384.1 kB / 495.6 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.1292, allocations: 84.95 kB / 495.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.1292, allocations: 7.938 kB / 495.7 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.1293, allocations: 8.188 kB / 495.7 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/0.1294, allocations: 15.92 kB / 495.7 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.1294, allocations: 7.984 kB / 495.7 MB, free: 6.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.1295, allocations: 105.7 kB / 495.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1295, allocations: 0 / 495.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.1299, allocations: 47.91 kB / 495.8 MB, free: 6.355 MB / 366.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.0006581/0.1306, allocations: 0.9123 MB / 496.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004863/0.1311, allocations: 345.7 kB / 497.1 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1311, allocations: 4.125 kB / 497.1 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.1314, allocations: 285.2 kB / 497.4 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.1318, allocations: 30.2 kB / 497.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.1343, allocations: 2.469 MB / 499.9 MB, free: 2.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.1346, allocations: 0.7242 MB / 0.4889 GB, free: 1.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.723e-05/0.1347, allocations: 9.422 kB / 0.4889 GB, free: 1.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.051e-05/0.1347, allocations: 43.42 kB / 0.4889 GB, free: 1.281 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1347, allocations: 4 kB / 0.4889 GB, free: 1.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01433/0.1491, allocations: 3.412 MB / 0.4922 GB, free: 14.07 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.1493, allocations: 242.1 kB / 0.4925 GB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.928, allocations: 2.969 kB / 0.4925 GB, free: 13.82 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/ConnectionPossibilities/ConnectionPossibilities.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches