Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 93.83 kB / 295.1 MB, free: 4.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1853/0.1853, allocations: 44.83 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002334, allocations: 8 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08175, allocations: 62.96 MB / 0.5153 GB, free: 5.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002012/0.0838, allocations: 2.398 MB / 0.5177 GB, free: 2.695 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009628/0.08478, allocations: 0.717 MB / 0.5184 GB, free: 1.973 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.085, allocations: 7.938 kB / 0.5184 GB, free: 1.965 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.08514, allocations: 35.7 kB / 0.5184 GB, free: 1.93 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.08536, allocations: 107.1 kB / 0.5185 GB, free: 1.824 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.0856, allocations: 67.88 kB / 0.5186 GB, free: 1.758 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003202/0.08593, allocations: 402 kB / 0.519 GB, free: 1.363 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.08612, allocations: 108.2 kB / 0.5191 GB, free: 1.254 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.08634, allocations: 143.4 kB / 0.5192 GB, free: 1.113 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.08652, allocations: 155.3 kB / 0.5193 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.08657, allocations: 20 kB / 0.5194 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.08665, allocations: 20 kB / 0.5194 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.31e-05/0.08669, allocations: 63.7 kB / 0.5194 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.366e-05/0.08676, allocations: 97.52 kB / 0.5195 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002063/0.08697, allocations: 311.4 kB / 0.5198 GB, free: 464 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.08698, allocations: 7.938 kB / 0.5198 GB, free: 456 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.08699, allocations: 4 kB / 0.5198 GB, free: 452 kB / 346.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.087, allocations: 0 / 0.5198 GB, free: 452 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0007222/0.08773, allocations: 0.581 MB / 0.5204 GB, free: 15.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.08777, allocations: 12.03 kB / 0.5204 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.08803, allocations: 67.5 kB / 0.5205 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.08833, allocations: 271.3 kB / 0.5207 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.08837, allocations: 25 kB / 0.5208 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.08844, allocations: 47.89 kB / 0.5208 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.08904, allocations: 386.2 kB / 0.5212 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.08907, allocations: 19.83 kB / 0.5212 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.08911, allocations: 16 kB / 0.5212 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.08913, allocations: 8 kB / 0.5212 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004116/0.08955, allocations: 235.7 kB / 0.5214 GB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.09164, allocations: 1.715 MB / 0.5231 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.09204, allocations: 274.3 kB / 0.5234 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.09221, allocations: 106 kB / 0.5235 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.09224, allocations: 12 kB / 0.5235 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.09227, allocations: 38.5 kB / 0.5235 GB, free: 12.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.09228, allocations: 4 kB / 0.5235 GB, free: 12.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006201/0.09291, allocations: 269.3 kB / 0.5238 GB, free: 12.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.09301, allocations: 209.6 kB / 0.524 GB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.09326, allocations: 270.9 kB / 0.5243 GB, free: 11.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.09329, allocations: 29.8 kB / 0.5243 GB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.09344, allocations: 247.4 kB / 0.5245 GB, free: 11.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.536e-05/0.09352, allocations: 122.3 kB / 0.5246 GB, free: 11.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/0.09355, allocations: 12 kB / 0.5246 GB, free: 11.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.09368, allocations: 346.8 kB / 0.525 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.09388, allocations: 97.27 kB / 0.5251 GB, free: 10.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/0.09426, allocations: 424.8 kB / 0.5255 GB, free: 10.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.09455, allocations: 175.8 kB / 0.5256 GB, free: 9.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.09456, allocations: 0 / 0.5256 GB, free: 9.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007865/0.09535, allocations: 0.5318 MB / 0.5262 GB, free: 9.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.09538, allocations: 11.94 kB / 0.5262 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.0954, allocations: 12.84 kB / 0.5262 GB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.09543, allocations: 20 kB / 0.5262 GB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.09587, allocations: 155.7 kB / 0.5264 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.0959, allocations: 19.94 kB / 0.5264 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.0962, allocations: 67.42 kB / 0.5264 GB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.09624, allocations: 28.56 kB / 0.5265 GB, free: 9.082 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.0964, allocations: 177.5 kB / 0.5266 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.09654, allocations: 35.58 kB / 0.5267 GB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.902e-05/0.09661, allocations: 37.78 kB / 0.5267 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.09662, allocations: 4 kB / 0.5267 GB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.09663, allocations: 4 kB / 0.5267 GB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.09664, allocations: 7.969 kB / 0.5267 GB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.09773, allocations: 0.648 MB / 0.5274 GB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.09775, allocations: 4 kB / 0.5274 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.09819, allocations: 96.02 kB / 0.5274 GB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.972e-06/0.09821, allocations: 4 kB / 0.5274 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.09824, allocations: 15.98 kB / 0.5275 GB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.09825, allocations: 4 kB / 0.5275 GB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.09826, allocations: 0 / 0.5275 GB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.09894, allocations: 0.8524 MB / 0.5283 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.09902, allocations: 104.9 kB / 0.5284 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.09906, allocations: 12 kB / 0.5284 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.09939, allocations: 7.984 kB / 0.5284 GB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.09945, allocations: 27.91 kB / 0.5284 GB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.09948, allocations: 16 kB / 0.5285 GB, free: 6.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001448/0.09963, allocations: 185.9 kB / 0.5286 GB, free: 6.727 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09963, allocations: 0 / 0.5286 GB, free: 6.727 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006956/0.1003, allocations: 99.75 kB / 0.5287 GB, free: 6.629 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001045/0.1004, allocations: 110.6 kB / 0.5288 GB, free: 6.516 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004674/0.1009, allocations: 297.9 kB / 0.5291 GB, free: 6.227 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1009, allocations: 0 / 0.5291 GB, free: 6.227 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.1011, allocations: 91.78 kB / 0.5292 GB, free: 6.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008884/0.102, allocations: 63.72 kB / 0.5293 GB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.1042, allocations: 1.935 MB / 0.5312 GB, free: 4.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.1045, allocations: 0.7916 MB / 0.5319 GB, free: 3.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.973e-05/0.1046, allocations: 31.44 kB / 0.532 GB, free: 3.234 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1046, allocations: 0 / 0.532 GB, free: 3.234 MB / 362.7 MB Notification: Performance of Templates: time 0.005859/0.1105, allocations: 4.032 MB / 0.5359 GB, free: 15.21 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches