Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities") translateModel(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 200.7 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.5 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007922/0.0007922, allocations: 96.31 kB / 295.1 MB, free: 4.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2021/0.2021, allocations: 44.84 MB / 392 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.000326, allocations: 8 kB / 464.7 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 62.96 MB / 0.5153 GB, free: 5.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.00139/0.1023, allocations: 1.52 MB / 0.5168 GB, free: 3.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002411/0.1026, allocations: 147.5 kB / 0.517 GB, free: 3.418 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.85e-05/0.1027, allocations: 4 kB / 0.517 GB, free: 3.414 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.043e-05/0.1027, allocations: 15.84 kB / 0.517 GB, free: 3.398 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.1028, allocations: 43.67 kB / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001158/0.1029, allocations: 27.97 kB / 0.517 GB, free: 3.328 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.1031, allocations: 175.1 kB / 0.5172 GB, free: 3.156 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1032, allocations: 41.84 kB / 0.5172 GB, free: 3.109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.888e-05/0.1033, allocations: 59.8 kB / 0.5173 GB, free: 3.051 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.649e-05/0.1034, allocations: 67.69 kB / 0.5174 GB, free: 2.984 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.1034, allocations: 8 kB / 0.5174 GB, free: 2.977 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.455e-05/0.1034, allocations: 11.94 kB / 0.5174 GB, free: 2.965 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.1034, allocations: 23.92 kB / 0.5174 GB, free: 2.941 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.178e-05/0.1035, allocations: 57.58 kB / 0.5175 GB, free: 2.879 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.1036, allocations: 131.9 kB / 0.5176 GB, free: 2.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1036, allocations: 0 / 0.5176 GB, free: 2.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1036, allocations: 8 kB / 0.5176 GB, free: 2.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1036, allocations: 0 / 0.5176 GB, free: 2.742 MB / 346.7 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.0004219/0.1041, allocations: 419.2 kB / 0.518 GB, free: 2.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1041, allocations: 12.03 kB / 0.518 GB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.1041, allocations: 15.81 kB / 0.518 GB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.1043, allocations: 206.8 kB / 0.5182 GB, free: 2.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1043, allocations: 8.328 kB / 0.5182 GB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.1044, allocations: 27.89 kB / 0.5183 GB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.1046, allocations: 173.5 kB / 0.5184 GB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1046, allocations: 3.984 kB / 0.5184 GB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.1046, allocations: 4 kB / 0.5184 GB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1046, allocations: 4 kB / 0.5184 GB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.1048, allocations: 91.7 kB / 0.5185 GB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.1054, allocations: 0.615 MB / 0.5191 GB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.1056, allocations: 133.1 kB / 0.5192 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.065e-05/0.1056, allocations: 49.7 kB / 0.5193 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.1057, allocations: 4 kB / 0.5193 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.422e-05/0.1057, allocations: 38.67 kB / 0.5193 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.1057, allocations: 0 / 0.5193 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006556/0.1063, allocations: 385.2 kB / 0.5197 GB, free: 356 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.388e-05/0.1064, allocations: 77.11 kB / 0.5198 GB, free: 260 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.073e-05/0.1065, allocations: 132.4 kB / 0.5199 GB, free: 116 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.1065, allocations: 33.7 kB / 0.5199 GB, free: 76 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.972e-05/0.1066, allocations: 124.1 kB / 0.5201 GB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.1066, allocations: 63.17 kB / 0.5201 GB, free: 15.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-06/0.1066, allocations: 4 kB / 0.5201 GB, free: 15.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.935e-05/0.1067, allocations: 322.8 kB / 0.5204 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.866e-05/0.1068, allocations: 35.92 kB / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.1069, allocations: 112.5 kB / 0.5206 GB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.851e-05/0.107, allocations: 48 kB / 0.5206 GB, free: 15.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.107, allocations: 4 kB / 0.5206 GB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003248/0.1073, allocations: 215.3 kB / 0.5208 GB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1073, allocations: 8 kB / 0.5208 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1074, allocations: 0 / 0.5208 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.1076, allocations: 54.03 kB / 0.5209 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.1077, allocations: 47.86 kB / 0.5209 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/0.1095, allocations: 2.72 MB / 0.5236 GB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.819e-05/0.1096, allocations: 11.84 kB / 0.5236 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.1096, allocations: 12 kB / 0.5236 GB, free: 11.99 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.1097, allocations: 134.3 kB / 0.5237 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.1098, allocations: 15.86 kB / 0.5237 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.1098, allocations: 12.72 kB / 0.5238 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1098, allocations: 4.094 kB / 0.5238 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1098, allocations: 4 kB / 0.5238 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.1098, allocations: 0 / 0.5238 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.1101, allocations: 233.4 kB / 0.524 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1101, allocations: 0 / 0.524 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.1103, allocations: 27.98 kB / 0.524 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.1104, allocations: 45.7 kB / 0.5241 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.1104, allocations: 7.938 kB / 0.5241 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001696/0.1121, allocations: 2.72 MB / 0.5267 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1121, allocations: 0 / 0.5267 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/0.1125, allocations: 368.6 kB / 0.5271 GB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.1126, allocations: 84.92 kB / 0.5272 GB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.1126, allocations: 16 kB / 0.5272 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.805e-05/0.1127, allocations: 0 / 0.5272 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.1127, allocations: 15.98 kB / 0.5272 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.1127, allocations: 0 / 0.5272 GB, free: 7.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.004e-05/0.1128, allocations: 103.3 kB / 0.5273 GB, free: 7.844 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1128, allocations: 3.938 kB / 0.5273 GB, free: 7.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.1132, allocations: 51.94 kB / 0.5273 GB, free: 7.789 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001111/0.1133, allocations: 96.28 kB / 0.5274 GB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000473/0.1138, allocations: 361.5 kB / 0.5278 GB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1138, allocations: 0 / 0.5278 GB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.1141, allocations: 281.5 kB / 0.528 GB, free: 7.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.1145, allocations: 30.22 kB / 0.5281 GB, free: 6.977 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.1156, allocations: 0.8088 MB / 0.5289 GB, free: 6.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.1159, allocations: 0.7281 MB / 0.5296 GB, free: 5.379 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.397e-05/0.116, allocations: 11.44 kB / 0.5296 GB, free: 5.367 MB / 362.7 MB Notification: Performance of SimCode: time 2.655e-06/0.116, allocations: 0 / 0.5296 GB, free: 5.367 MB / 362.7 MB Notification: Performance of Templates: time 0.004369/0.1203, allocations: 3.084 MB / 0.5326 GB, free: 2.285 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/ConnectionPossibilities/ConnectionPossibilities.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches